AnimationOptions class final
How a camera change animates.
See mln_animation_options in the
C API reference.
Constructors
- AnimationOptions({double? durationMs, double? velocity, double? minZoom, UnitBezier? easing, int? transitionId, CameraTransitionHandler endHandler = const CameraTransitionHandler()})
-
const
Properties
- durationMs → double?
-
final
- easing → UnitBezier?
-
final
- endHandler → CameraTransitionHandler
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- minZoom → double?
-
The zoom level at the peak of a fly animation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transitionId → int?
-
An ID that
MapHandle.cancelCameraTransitionsWithId()cancels the change by. Several changes can share one.final - velocity → double?
-
The average speed of a fly animation, in screens per second.
duration_msoverrides it.final
Methods
-
copyWith(
{double? durationMs, double? velocity, double? minZoom, UnitBezier? easing, int? transitionId, CameraTransitionHandler? endHandler}) → AnimationOptions - 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