Condition<T> class
A conditional value provider.
Provides the value when the condition is active.
Compare conditions by setting either breakpoint
or
name values.
Constructors
- Condition.between({required int? start, required int? end, T? value, T? landscapeValue})
-
Conditional when screen width is between
start
andend
inclusive.const - Condition.equals({required String? name, T? value, T? landscapeValue})
-
const
- Condition.largerThan({int? breakpoint, String? name, T? value, T? landscapeValue})
-
const
- Condition.smallerThan({int? breakpoint, String? name, T? value, T? landscapeValue})
-
const
Properties
- breakpointEnd → int?
-
final
- breakpointStart → int?
-
final
- condition → Conditional?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- landscapeValue → T?
-
final
- name → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T?
-
final
Methods
-
copyWith(
{int? breakpointStart, int? breakpointEnd, String? name, Conditional? condition, T? value, T? landscapeValue}) → Condition< T> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sort(
Condition a, Condition b) → int -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited