SnapAlignment class
A class to control the Snap position of SnappyListView widget, either of the whole viewport or only on items themselves.
Constructors
- SnapAlignment.custom(double _parameters(SnapAlignmentItem item))
- Create a custom snap behavior or extend the class. Note: Please create a pull request to add your behavior to the package.
- SnapAlignment.moveAcross()
- Moves the snap point slowly from start to end of list. The position changes based on the position of current page in itemCount. This behavior might be familiar from the AirBnB explorer list behavior.
- SnapAlignment.static([double alignment = 0.5])
- Creates a static non-changing snap point at given position.
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
-
apply(
SnapAlignmentItem item) → double - Returns a double of where the current snap point is supposed to be
-
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