SnappingModel class abstract
Base class for all MultiStateSheet snapping models used in conjunction with SnappingBehavior.
This abstract class provides the foundation for calculating snapping offsets based on the state of the sheet and its components. Implementations define how snapping positions are determined.
See also:
- FractionSnappingModel: A snapping model based on fractions of the viewport height.
- SizeSnappingModel: A snapping model based on sheet sizes in pixels.
- OffsetSnappingModel: A snapping model based on fixed pixel offsets from the top of the viewport.
- ComponentsSnappingModel: A snapping model based on the sizes of specific sheet components.
Constructors
- SnappingModel()
-
Default constructor for a snapping model.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getOffsets<
T> (MultiStateSheetExtent< T> extent) → SplayTreeSet<double> - Abstract method to calculate snapping offsets for the sheet.
-
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