PickerStyle enum

How a picker asks to be drawn — a knob's, or a shell's axis in the top bar.

Presentation only. It changes nothing about what the picker holds or how a value is set: --knobs=theme=Dark reads the same either way, and so does the address. That is what makes it safe for a host to fall back on dropdown — for a style it does not know, which a newer guest can send an older host, and for more options than segmented shows.

Inheritance
Available extensions

Values

The chosen option in a field that opens onto the rest. Right for any number of options, which is why it is the default.

segmented → const PickerStyle

Every option on show, the chosen one raised: for a choice between two or three, like Light and Dark, where seeing the alternative is the point.

Up to five options. A picker offering more is drawn as a dropdown anyway, because past that a row of segments stops reading at a glance, and in a one-row toolbar it pushes everything after it out of sight.

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<PickerStyle>
A constant List of the values in this enum, in order of their declaration.