closeFlingAnimationController method

void closeFlingAnimationController(
  1. MapEventSource source
)
inherited

Implementation

void closeFlingAnimationController(MapEventSource source) {
  _flingAnimationStarted = false;
  if (_flingController.isAnimating) {
    _flingController.stop();

    _stopListeningForAnimationInterruptions();

    mapState.emitMapEvent(
      MapEventFlingAnimationEnd(
          center: mapState.center, zoom: mapState.zoom, source: source),
    );
  }
}