ConditionBreakpoint<T> class

Child Class of Condition, It's goal is to have more modular conditions compared it with differents breakpoint we can use this to create more complex conditions. ConditionBreakpoint will be use by valueFromConditionByBreakpoints

ConditionBreakpoint.equals It is used to create a condition of equality to the CurrentBreakpoint

ConditionBreakpoint.largerThan It is used to create a condition larger than an breakpoint

ConditionBreakpoint.smallerThan It is used to create a condition smaller than an breakpoint

Mobile, Tablet, Desktop properties from parent class doesn't have a use.

Example

const List<ConditionBreakpoint<bool>> conditions = [
        ConditionBreakpoint<bool>.equals(
          screenType: DeviceScreen.mobile,
          value: true,
        ),
        ConditionBreakpoint<bool>.smallerThan(
          screenType: DeviceScreen.desktop,
          value: true,
        ),
        ConditionBreakpoint<bool>.largerThan(
          value: true,
          breakpoint: 950,
        ),
      ];
Inheritance

Constructors

ConditionBreakpoint.equals({required DeviceScreen? screenType, T? value})
const
ConditionBreakpoint.largerThan({DeviceScreen? screenType, double? breakpoint, T? value})
const
ConditionBreakpoint.smallerThan({DeviceScreen? screenType, double? breakpoint, T? value})
const

Properties

breakpoint double?
Breakpoint to filter by Size.with
final
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
isNull bool
no setter
mobile → T?
Value for mobile Screen
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
screenType DeviceScreen?
This value tells the condition to look for the breakpoint value in the WrapperConfig for the sreen type mobile, tablet, desktop
final
tablet → T?
Value for tablet Screen
finalinherited
value → T?
It is the return value for the condition if is true
final

Methods

copyWith({DeviceScreen? screenType, Conditional? conditional, T? value, double? breakpoint}) ConditionBreakpoint<T>
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