mapController property

  1. @Deprecated('Read `controller`; hand controllers over with `attach`. ' 'Completing this directly throws when the platform view is recreated.')
Completer<GoogleMapController> get mapController

The completer holding the platform controller of the map currently attached.

Read controller instead, and hand controllers over with attach. Completing this directly leaves the live controller untracked, and throws Bad state: Future already completed the moment a second platform view is created for the same GoogleMapsController.

Implementation

@Deprecated('Read `controller`; hand controllers over with `attach`. '
    'Completing this directly throws when the platform view is recreated.')
Completer<GoogleMapController> get mapController => _mapController;