ScreenSwitchValue<Type> class
Selects the specified value according to the screen or window size. It updates automatically as dimensions change and can be used for values of any type.
This can be very useful with Flex to display items in row or column. Specify the breakpoints parameter to use custom local breakpoints.
Constructors
- ScreenSwitchValue(BuildContext context, {required Type sm, Type? md, Type? lg, Type? xl, Type? xl2, FluidoBreakpoints? breakpoints})
-
const
Properties
- breakpoints → FluidoBreakpoints?
-
final
- context → BuildContext
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lg → Type?
-
final
- md → Type?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → Type
-
final
- value → Type
-
The
Type
value selected, depending on the screen or window size.no setter - xl → Type?
-
final
- xl2 → Type?
-
final
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