Breakpoint class final
One screen size class of a project: from minWidth (inclusive) up to the next breakpoint's.
- Annotations
-
- @immutable
Constructors
Properties
- designHeight → double
-
The height a canvas designed for it takes.
no setter
- designWidth → double
-
The width a canvas designed for it takes.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- height → double
-
The design size a canvas for it takes (0: minWidth, or 390 wide for a
first breakpoint at 0; see designWidth).
final
- id → String
-
Stable: screens' canvases and responsive variants refer to it by this.
final
- key → String
-
label as a formula key: lower camel case, letters and digits only
("Large desktop" →
largeDesktop).no setter - label → String
-
The name shown: name, else id.
no setter
- minWidth → double
-
The narrowest width it covers, inclusive.
final
- name → String
-
Shown in the editor and in
${screen.breakpointName}.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- width → double
-
The design size a canvas for it takes (0: minWidth, or 390 wide for a
first breakpoint at 0; see designWidth).
final
Methods
-
copyWith(
{String? id, String? name, double? minWidth, double? width, double? height}) → Breakpoint -
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) → Breakpoint?