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
-
- Object
- ViewportTransition
- FlyViewportTransition
Constructors
- FlyViewportTransition.new({Duration? duration})
-
Creates a FlyViewportTransition with an optional
duration
.const
Properties
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