CanvasBreakpoint class final
Which project breakpoint a canvas of a layout is the design for (DESIGN.md §5.3). A layout with several canvases (one screen, one canvas per breakpoint) shows the one whose switch point is the highest at or below the width it's shown at (see CanvasBreakpointsForWidth.forWidth).
- Annotations
-
- @immutable
Constructors
- CanvasBreakpoint({required String canvasId, String? breakpointId, double? minWidth})
-
const
Properties
- breakpointId → String?
-
The project breakpoint (Breakpoint.id) it is the design for; null
when it names none (its minWidth alone places it).
final
- canvasId → String
-
The canvas.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- minWidth → double?
-
Where this canvas starts showing when not at its breakpoint's min width:
its own switch point.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
minWidthIn(
Breakpoints breakpoints) → double -
The width this canvas starts showing at, by the project's
breakpoints. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Json -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
Object? json) → CanvasBreakpoint?