GemAnimation class Maps & 3D Scenes

Animation descriptor used for camera and map transitions.

A lightweight object that describes how map or camera transitions should be animated. It carries the animation type, duration (in milliseconds), and an optional completion callback that is invoked when the underlying native animation finishes.

It is passed to methods that perform camera movement or view changes (for example GemMapController.alignNorthUp, GemView.centerOnRoutePart or FollowPositionPreferences.setPerspective) to control visual transitions

See also:

Constructors

GemAnimation({AnimationType type = AnimationType.none, int duration = 0, void onCompleted()?})
Construct a new GemAnimation.
GemAnimation.fromJson(Map<String, dynamic> json)
Deserializes a JSON-compatible map to create an instance.
factory
GemAnimation.linear({Duration? duration, void onCompleted()?})
Construct a GemAnimation configured for a linear animation.
GemAnimation.none()
Construct a GemAnimation that represents no animation.

Properties

duration int
Animation duration in milliseconds (0 means use SDK default / no explicit duration).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onCompleted ↔ void Function()?
Optional callback invoked when the native animation completes.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type AnimationType
The animation visual style.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this instance to a JSON-compatible map.
toString() String
A string representation of this object.
inherited

Operators

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