ScreenType enum

Screen Type based on the screen width.

By default, If screen width is 0-359 px, it will be smallHandset. If the screen width is 360-399 px, it will be mediumHandset. If the screen width is 400-599 px, it will be largeHandset. If the screen width is 600-719 px, it will be smallTablet. If the screen width is 720-1023 px, it will be largeTablet. If the screen width is 1024-1439 px, it will be smallDesktop. If the screen width is 1440-1919 px, it will be mediumDesktop. If the screen width is 1920+ px, it will be largeDesktop.

See also:

Inheritance

Constructors

ScreenType()
const

Values

smallHandset → const ScreenType
mediumHandset → const ScreenType
largeHandset → const ScreenType
smallTablet → const ScreenType
largeTablet → const ScreenType
smallDesktop → const ScreenType
mediumDesktop → const ScreenType
largeDesktop → const ScreenType

Properties

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

Methods

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 ==(Object other) bool
The equality operator.
inherited

Constants

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