AnchoredMomentum class final

How a gesture's zoom, bearing, or pitch keeps changing after release.

See mln_anchored_momentum in the C API reference.

Constructors

AnchoredMomentum({double? velocity, ScreenPoint? anchor, MomentumDecay decay = const MomentumDecay(), MomentumSnap? snap})
const

Properties

anchor → ScreenPoint?
The screen point that the change keeps in place. Without one, the change keeps the center of the view in place.
final
decay → MomentumDecay
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
snap → MomentumSnap?
Where the part settles. Without this, it stays where the gesture and its glide leave it.
final
velocity → double?
How fast the value changed at release: zoom levels per second for zoom, and degrees per second for bearing and pitch. The part moves only when this is set.
final

Methods

copyWith({double? velocity, ScreenPoint? anchor, MomentumDecay? decay, MomentumSnap? snap}) → AnchoredMomentum
A copy of this value with the given members replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited