ActionLayoutConstraints class final

Available primary space and renderer costs for one resolution pass.

Constructors

ActionLayoutConstraints({required double primaryCapacity, int? maxPrimaryActions, double overflowTriggerCost = 0, Iterable<ActionLayoutProfile> profiles = const []})
Creates a snapshot of primary-region limits and profiles.
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
maxPrimaryActions → int?
Optional upper bound on the number of primary root actions.
final
overflowTriggerCost → double
Space reserved for the control that opens a non-empty overflow region.
final
primaryCapacity → double
Total space available in the same unit as ActionLayoutOption.cost.
final
profiles → Map<ActionId, ActionLayoutProfile>
Layout profiles keyed by root action ID.
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
profileFor(ActionId actionId) → ActionLayoutProfile?
Returns the measured costs for actionId, or null when absent.
toString() → String
A string representation of this object.
override

Operators

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