ActionPlacementConstraints class final

Shared placement rules for a set of root actions.

These constraints affect placement only. They do not draw a border, create a menu, or require actionIds to be adjacent in the collection's root list.

For example, indivisible constraints over A and C move both roots together while preserving the original A, B, C display order:

declaration:  A  B  C
constraint:   [A-----C]

primary:      A     C       or       B
overflow:        B                 A   C

Constructors

ActionPlacementConstraints({required ActionPlacementConstraintId id, required Iterable<ActionId> actionIds, ActionPlacementSplitPolicy splitPolicy = ActionPlacementSplitPolicy.splittable, ActionPlacement? placementOverride, PrimaryRetentionPriority? retentionPriority})
Creates shared placement rules for actionIds.
ActionPlacementConstraints.fromActions({required ActionPlacementConstraintId id, required Iterable<AdaptiveAction<Object>> actions, ActionPlacementSplitPolicy splitPolicy = ActionPlacementSplitPolicy.splittable, ActionPlacement? placementOverride, PrimaryRetentionPriority? retentionPriority})
Creates a placement relationship from action instances.
factory

Properties

actionIds → List<ActionId>
Root action IDs governed by this relationship.
final
hashCode → int
The hash code for this object.
no setteroverride
id → ActionPlacementConstraintId
The constraint set's stable identity.
final
placementOverride → ActionPlacement?
The region forced upon every action, or null to inherit action policy.
final
retentionPriority → PrimaryRetentionPriority?
The primary-retention priority shared by automatic actions, if any.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
splitPolicy → ActionPlacementSplitPolicy
Whether the constrained actions may be placed separately.
final

Methods

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

Operators

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