September 2019
Beginner
512 pages
12h 52m
English
In contrast with other controllable widgets, we do not provide a controller to the GoogleMap widget by ourselves. Instead, this will be provided to us through the previously seen onMapCreated callback. So, we just need to store it, as follows:
GoogleMap( ... onMapCreated: (controller) { _mapController = controller; },),
_mapController is an instance field of the MapPage widget that we will be using to interact with the map camera.
Read now
Unlock full access