Here is the code:
Completer _controller = Completer(); ... onMapCreated: (GoogleMapController controller) { _controller.complete(