ComponentsSnappingModel class final

Represents a snapping model for calculating snapping positions and states based on the sizes of Widgets in a MultiStateSheet. It generates snapping positions using the provided descriptions of components.

This model is used inside the sheet SnappingBehavior UX objects.

Inheritance

Constructors

ComponentsSnappingModel({required List<SnapComponent> componentsDescriptions})
Represents a snapping model for calculating snapping positions and states based on the sizes of Widgets in a MultiStateSheet. It generates snapping positions using the provided descriptions of components.

Properties

componentsDescriptions List<SnapComponent>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getOffsetFromDescriptor<T>(MultiStateSheetExtent<T> extent, SnapComponent descriptor) double
getOffsets<T>(MultiStateSheetExtent<T> extent) SplayTreeSet<double>
Abstract method to calculate snapping offsets for the sheet.
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