PanMomentum class final

How a gesture's pan keeps moving the map's content after release.

See mln_pan_momentum in the C API reference.

Constructors

PanMomentum({ScreenPoint? velocity, MomentumDecay decay = const MomentumDecay()})
const

Properties

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
velocity → ScreenPoint?
How fast the map's content moved on the screen at release, in logical pixels per second. The pan moves only when this is set.
final

Methods

copyWith({ScreenPoint? velocity, MomentumDecay? decay}) → PanMomentum
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