MapGlide class

A released gesture coasting and slowing like a body on a surface: the map slides at pan screen pixels a second and zooms, turns and tilts at their rates per second, all about screen point focal.

Annotations

Properties

duration → Duration
no setter
focal → Offset
final
hashCode → int
The hash code for this object.
no setterinherited
pan → Offset
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
tilt → double
final
turn → double
final
zoom → double
final

Methods

at(double t) → MapGestureStep
How far the glide has taken the camera from where it was released, at t of its duration.
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

Static Methods

of({required Offset focal, Offset pan = Offset.zero, double zoom = 0, double turn = 0, double tilt = 0}) → MapGlide?
The glide of a gesture released at these speeds, capped, or null when it was too slow to coast.

Constants

glideSeconds → const double
How long a released gesture keeps its speed: the speed falls to a third in this time.