focusOnCoordinates method
void
focusOnCoordinates(
- GlobeCoordinates coordinates, {
- bool animate = false,
- Duration? duration = const Duration(milliseconds: 500),
Focuses on the coordinates
on the globe.
The coordinates
parameter represents the coordinates to focus on.
The animate
parameter represents whether the focus should be animated.
The duration
parameter represents the duration of the animation.
Example usage:
controller.focusOnCoordinates(GlobeCoordinates(0, 0), animate: true);
Implementation
void focusOnCoordinates(GlobeCoordinates coordinates,
{bool animate = false,
Duration? duration = const Duration(milliseconds: 500)}) {
globeKey.currentState
?.focusOnCoordinates(coordinates, animate: animate, duration: duration);
}