FlyViewportTransition class final

A ViewportTransition that performs a fly animation over a specified duration.

The FlyViewportTransition animates the camera using a flight path that typically follows a zoom-out, flight, and zoom-in pattern. This creates a dynamic and engaging transition between different viewport states, giving users a sense of movement across the map.

Example

final flyTransition = FlyViewportTransition(
  duration: Duration(seconds: 5),
);

In this example, the fly animation will occur over 5 seconds. If duration is not specified, the transition will use a default duration determined by the system.

Inheritance

Constructors

FlyViewportTransition.new({Duration? duration})
Creates a FlyViewportTransition with an optional duration.
const

Properties

duration Duration?
The duration of the fly animation.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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