FractionSnappingModel class final

Snapping model that calculates snapping positions based on fraction of the sheet's viewport.

This model defines snapping offsets as proportions of the viewport's height, allowing for dynamic adjustments based on the available space. It is used with the sheet's SnappingBehavior to provide fraction-based snapping states.

Inheritance

Constructors

FractionSnappingModel(Set<double> fractions)
Constructs an FractionSnappingModel with the given fractions.

Properties

fractions Set<double>
A set of fraction where:
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

getOffsets<T>(MultiStateSheetExtent<T> extent) SplayTreeSet<double>
Calculates snapping offsets based on the fractions of the viewport.
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