SnappingPosition class
Constructors
- SnappingPosition.factor({required double positionFactor, Curve snappingCurve = Curves.easeOutSine, Duration snappingDuration = const Duration(milliseconds: 250), double grabbingContentOffset = GrabbingContentOffset.middle})
-
Creates a snapping position that is given a positionFactor
positionFactor
: 1 = Full size; 0 = Smallest size. Can be bigger than 1 and smaller than 0 if that is wanted.const - SnappingPosition.pixels({required double positionPixels, Curve snappingCurve = Curves.ease, Duration snappingDuration = const Duration(milliseconds: 250), double grabbingContentOffset = GrabbingContentOffset.middle})
-
Creates a snapping position that is given by the amount of pixels
const
Properties
- grabbingContentOffset → double
-
The snapping position alignment regarding the grabbing content.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snappingCurve → Curve
-
The animation curve to this snapping position
final
- snappingDuration → Duration
-
The snapping duration
final
Methods
-
getPositionInPixels(
double maxHeight, double grabbingHeight) → double -
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.
override