ResponsiveScreen class Null safety

Constructors

ResponsiveScreen(ResponsiveScreenSettings settings)

Properties

context BuildContext
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
height double
read-only
isDesktop bool
Is screenType ScreenType.Desktop
read-only
isPhone bool
Is screenType ScreenType.Phone
read-only
isTablet bool
Is screenType ScreenType.Tablet
read-only
isWatch bool
Is screenType ScreenType.Watch
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
screenType ScreenType
read-only
settings ResponsiveScreenSettings
final
width double
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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