ConditionScreen<T> class
Child class of Condition,
It's goal is to have conditional value for the tree screen types mobile, tablet, desktop.
For default the Conditional always will be EQUALS
,
ConditionScreen
will be use by valueFromConditionByScreen
T Mobile: Is the value when the app screen is mobile
this value is getting from CurrentBreakpoint (Local, Global or Default)
T Tablet: Is the value when the app screen is tablet
this value is getting from CurrentBreakpoint (Local, Global or Default)
T Desktop: Is the value when the app screen is desktop
this value is getting from CurrentBreakpoint (Local, Global or Default)
CurrentBreakpoint is gets from method getCurrentBreakPoints
Exampple
ConditionScreen(
mobile: 'Mobile',
tablet: 'Tablet',
desktop: 'Desktop',
);
Constructors
- ConditionScreen({T? mobile, T? tablet, T? desktop})
-
const
Properties
- conditional → Conditional
-
Type of condition:
EQUALS
,SMALLER_THAN
,LARGER_THAN
finalinherited - desktop → T?
-
Value for desktop
Screen
finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- mobile → T?
-
Value for mobile
Screen
finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tablet → T?
-
Value for tablet
Screen
finalinherited
Methods
-
copyWith(
{T? mobile, T? tablet, T? desktop}) → ConditionScreen -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited