PositionState class
Represents the state of a positioning calculation as it passes through the PositioningPipeline.
- Annotations
Constructors
- PositionState({required AnchorPoints anchorPoints, required PositioningConfig config, PositionMetadata metadata = const PositionMetadata()})
-
Creates a new PositionState.
const
- PositionState.fromConfig(PositioningConfig config)
-
Creates an initial PositionState from a Placement and PositioningConfig.
factory
Properties
- anchorPoints → AnchorPoints
-
The calculated anchor points for both the child and overlay.
final
- config → PositioningConfig
-
The positioning configuration containing geometric constraints.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metadata → PositionMetadata
-
Metadata produced by middleware during positioning.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{AnchorPoints? anchorPoints, PositioningConfig? config, PositionMetadata? metadata}) → PositionState - Creates a copy of this state with the given fields replaced.
-
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