Responsive<T> class

Defines a responsive value based on screen type sm, md, lg

Constructors

Responsive(T value, {T sm, T md, T lg})

Properties

lg ↔ T
Screen width >= 768
read / write
md ↔ T
Screen screen 321 <= width <= 767
read / write
sm ↔ T
Screen width <= 320
read / write
value ↔ T
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getValue(BuildContext context) → T
Get the value based on screen size
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited