ResponsiveScreen class
Constructors
- ResponsiveScreen(ResponsiveScreenSettings settings)
Properties
- context ↔ BuildContext
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double
-
no setter
- isDesktop → bool
-
Is screenType
ScreenType.Desktopno setter - isPhone → bool
-
Is screenType
ScreenType.Phoneno setter - isTablet → bool
-
Is screenType
ScreenType.Tabletno setter - isWatch → bool
-
Is screenType
ScreenType.Watchno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- screenType → ScreenType
-
no setter
- settings → ResponsiveScreenSettings
-
final
- width → double
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
responsiveValue<
T> ({T? mobile, T? tablet, T? desktop, T? watch}) → T? -
Return widget according to screen type
if the screenType is
ScreenType.Desktopanddesktopobject is null thetabletobject will be returned and iftabletobject is null themobileobject will be returned and ifmobileobject is null thewatchobject will be returned also when it is null. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited