Breakpoints<T> class

A set of breakpoints and associated values.

The xs breakpoint is required.

Inheritance

Constructors

Breakpoints({required T xs, T? sm, T? md, T? lg, T? xl, T? xxl, Map<int, T>? custom})

Properties

breakpoints List<int>
The integer widths at which layout changes will occur.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values List<T?>
The values used at each breakpoint.
finalinherited

Methods

choose(double width) → T
Chooses a value based on which of breakpoints is satisfied by width.
inherited
map<V>(V f(T?)) BaseBreakpoints<V>
Returns a new BaseBreakpoints with its values mapped to a new type.
inherited
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