DisplayRange enum

Represents a display screen size range that corresponds to certain common classes of devices, such as phones, tablets, and desktop screen sizes.

Inheritance
Implemented types
Available extensions

Values

phone → const DisplayRange
const DisplayRange._(_DisplayRangeType.phone)
tablet → const DisplayRange
const DisplayRange._(_DisplayRangeType.tablet)
largeTablet → const DisplayRange
const DisplayRange._(_DisplayRangeType.tablet)
desktop → const DisplayRange
const DisplayRange._(_DisplayRangeType.desktop)
largeDesktop → const DisplayRange
const DisplayRange._(_DisplayRangeType.desktop)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isDesktop bool
no setter
isPhone bool
no setter
isTablet bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(DisplayRange other) int
Compares this object to another object.
override
isEqualOrLargerThan(DisplayRange other) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator <(DisplayRange other) bool
operator <=(DisplayRange other) bool
operator ==(Object other) bool
The equality operator.
inherited
operator >(DisplayRange other) bool
operator >=(DisplayRange other) bool

Static Methods

forSize(Size size) DisplayRange
Returns a display range that matches the given size

Constants

values → const List<DisplayRange>
A constant List of the values in this enum, in order of their declaration.