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.Desktop
no setter - isPhone → bool
-
Is screenType
ScreenType.Phone
no setter - isTablet → bool
-
Is screenType
ScreenType.Tablet
no setter - isWatch → bool
-
Is screenType
ScreenType.Watch
no 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.Desktop
anddesktop
object is null thetablet
object will be returned and iftablet
object is null themobile
object will be returned and ifmobile
object is null thewatch
object 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