FormFactor enum

Which device bucket an entry is shown in by the in-app UICatalog.

The catalog widget's own vocabulary, and only its own. It used to be an annotation field as well — @Demo(formFactor:), carrying a Size that transform() folded into Preview.size — and both of those went with the annotation. What is left is what the widget always did with it: pick a frame from default_device_list.dart.

all states no opinion, and is the default for an entry no picker matches.

Inheritance
Available extensions

Values

mobile → const FormFactor
desktop → const FormFactor
all → const FormFactor

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Constants

values → const List<FormFactor>
A constant List of the values in this enum, in order of their declaration.