ResponsiveScreen class

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 and desktop object is null the tablet object will be returned and if tablet object is null the mobile object will be returned and if mobile object is null the watch 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