ViewportSpec class

One named viewport, and whether the shell around it keeps its furniture at that width.

Annotations

Constructors

ViewportSpec({required String id, required String label, required Size size, required bool showsChrome})
const

Properties

hashCode → int
The hash code for this object.
no setteroverride
height → double
no setter
id → String
final
label → String
What the reader is told they are looking at, dimensions included. The numbers are part of the label on purpose: a frame that says only "mobile" invites the reader to supply their own idea of how wide that is.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
showsChrome → bool
Whether a shell hosting this viewport keeps its sidebar at this width.
final
size → Size
final
width → double
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

byId(String id) → ViewportSpec

Constants

desktop → const ViewportSpec
mobile → const ViewportSpec
tablet → const ViewportSpec
values → const List<ViewportSpec>
Desktop, tablet, mobile — in that order, because the reader starts from the width they are already looking at.