ResponsiveUtil class Null safety

Utilitie to check the screen size by device.

Constructors

ResponsiveUtil({required ScreenChangePoints changePoints, required BuildContext context})
Define a ResponsiveUtil class.
const

Properties

changePoints ScreenChangePoints
Required change points to verify the screen size.
final
context BuildContext
Context to get the current height and width of the screen.
final
hashCode int
The hash code for this object.
read-onlyinherited
height double
Current height of the screen.
read-only
isDesktop bool
Returns true if screen size is desktop.
read-only
isPhone bool
Returns true if screen size is phone.
read-only
isTablet bool
Returns true if screen size is tablet.
read-only
isWatch bool
Returns true if screen size is watch.
read-only
responsiveType ResponsiveType
Returns the responsive type depending of the screen size.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
width double
Current width of the screen.
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited