ActionLayoutProfile class final

The primary-region layouts available for one root action.

Options are declared most-preferred first, but placement initially uses the cheapest option. After primary actions are known, remaining capacity is used to move back toward the preferred end:

preferred                                      fallback
[label + icon, cost 96] -> [icon, cost 48] -> [dot, cost 24]
         ^ upgrade when space remains              ^ placement baseline

Constructors

ActionLayoutProfile({required ActionId actionId, required Iterable<ActionLayoutOption> options})
Creates the ordered layout choices for actionId.

Properties

actionId → ActionId
The root action these options can render.
final
hashCode → int
The hash code for this object.
no setteroverride
options → List<ActionLayoutOption>
Layout choices in preferred-to-fallback order.
final
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
optionFor(ActionLayoutOptionId id) → ActionLayoutOption?
Returns the option identified by id, or null when absent.
toString() → String
A string representation of this object.
override

Operators

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