MapControllerImpl constructor

MapControllerImpl({
  1. MapOptions? options,
  2. TickerProvider? vsync,
})

Constructor of the MapController implementation for internal usage.

Implementation

MapControllerImpl({MapOptions? options, TickerProvider? vsync})
    : super(
        _MapControllerState(
          options: options,
          camera: options == null ? null : MapCamera.initialCamera(options),
          animationController:
              vsync == null ? null : AnimationController(vsync: vsync),
        ),
      ) {
  value.animationController?.addListener(_handleAnimation);
}