ResponsiveUtil class

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.
no setterinherited
height double
Current height of the screen.
no setter
isDesktop bool
Returns true if screen size is desktop.
no setter
isPhone bool
Returns true if screen size is phone.
no setter
isTablet bool
Returns true if screen size is tablet.
no setter
isWatch bool
Returns true if screen size is watch.
no setter
responsiveType ResponsiveType
Returns the responsive type depending of the screen size.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double
Current width of the screen.
no setter

Methods

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

Operators

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