init static method
Future<GoogleMapController>
init(
- int id,
- CameraPosition initialCameraPosition,
- _GoogleMapState googleMapState
Initialize control of a GoogleMap with id
.
Mainly for internal use when instantiating a GoogleMapController passed in GoogleMap.onMapCreated callback.
Implementation
static Future<GoogleMapController> init(
int id,
CameraPosition initialCameraPosition,
_GoogleMapState googleMapState,
) async {
await GoogleMapsFlutterPlatform.instance.init(id);
return GoogleMapController._(
googleMapState,
mapId: id,
);
}