ViewMode enum

User-selected view-mode pin.

Domain of the per-app pin (AppConfig.viewMode), global pin (AppSettings.defaultViewMode), and the server-side DSL responsive hint. auto means "do not pin at this level — defer to the next source in the priority chain".

Inheritance
Available extensions

Values

auto → const ViewMode
compact → const ViewMode
medium → const ViewMode
expanded → const ViewMode
large → const ViewMode
extraLarge → const ViewMode

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
value String
Canonical string form (stored in AppConfig / AppSettings / DSL).
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toFormFactor() FormFactor?
Map a concrete (non-auto) pin to a FormFactor. Returns null for ViewMode.auto so the priority chain can skip it.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(Object? raw) ViewMode
Parse a persisted string pin. Unknown / missing values collapse to ViewMode.auto.

Constants

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