Breakpoint class final

One screen size class of a project: from minWidth (inclusive) up to the next breakpoint's.

Annotations
  • @immutable

Constructors

Breakpoint({required String id, String name = '', double minWidth = 0, double width = 0, double height = 0})
const

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?

Constants

heightDef → const PropDef<double>
idDef → const PropDef<String>
minWidthDef → const PropDef<double>
nameDef → const PropDef<String>
spec → const WidgetSpec
The field declarations (a generated panel edits a breakpoint by them).
widthDef → const PropDef<double>