SheetSnapGrid class abstract interface

Implementers

Constructors

SheetSnapGrid({required List<SheetOffset> snaps, double minFlingSpeed})
const
factory
SheetSnapGrid.single({required SheetOffset snap})
const
factory
SheetSnapGrid.stepless({SheetOffset minOffset, SheetOffset maxOffset})
const
factory

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

getBoundaries(ViewportLayout layout) → (SheetOffset, SheetOffset)
Returns the minimum and maximum offsets.
getSnapOffset(ViewportLayout layout, double offset, double velocity) → SheetOffset
Returns an position to which a sheet should eventually settle based on the current layout, offset and velocity of 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