ScreenResponsiveValue<T> class
A responsive value based on screen size categories.
final columns = ScreenResponsiveValue<int>(
context,
xs: 1,
sm: 2,
md: 3,
lg: 4,
xl: 6,
).value;
Constructors
- ScreenResponsiveValue(BuildContext _context, {T? xs, T? sm, T? md, T? lg, T? xl, T? defaultValue})
-
Creates a responsive value based on screen size.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T
-
Gets the value for the current screen size.
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