OffsetSnappingModel class final
Snapping model that calculates snapping positions based on fixed pixel positions.
This model defines snapping offsets as absolute positions relative to the bottom of the viewport, allowing for precise snapping states based on the pixel Offset of the bottom sheet. It is used with the sheet's SnappingBehavior to implement fixed-Offset snapping logic.
- Inheritance
-
- Object
- SnappingModel
- OffsetSnappingModel
Constructors
-
OffsetSnappingModel(Set<
double> offsets) -
Constructs a OffsetSnappingModel with the specified
offsets.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
offsets
→ Set<
double> -
A set of pixel offsets which are defining the snapping positions.
Each position is measured from the bottom of the viewport upwards.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getOffsets<
T> (MultiStateSheetExtent< T> extent) → SplayTreeSet<double> -
Calculates snapping offsets based on Offsetd pixel positions.
override
-
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