Layout<BreakpointId extends Enum, B extends Breakpoint<BreakpointId>> class abstract

Implementers
Annotations

Constructors

Layout()
const

Properties

biggestBreakpoint → B
no setter
breakpoints SplayTreeSet<B>
At least one breakpoint must exist. Make sure all breakpoint enums are defined, otherwise breakpointById may throw exception.
final
breakpointsMap Map<BreakpointId, B>
no setter
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
smallestBreakpoint → B
no setter

Methods

breakpoint(double containerWidth) → B?
Returns null if container width is smaller than the smallest breakpoint.
breakpointById(BreakpointId id) → B
format(double containerWidth, [double containerHeight = double.maxFinite]) LayoutFormat
nextBreakpoint(BreakpointId? id) → B?
Returns 'null' if the given breakpoint is the biggest breakpoint.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
previousBreakpoint(BreakpointId? id) → B?
Returns null in one of these cases:
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override