init method

void init({
  1. void onMapReady()?,
  2. void onMapClick(
    1. double latitude,
    2. double longitude
    )?,
  3. void onMapRendered()?,
  4. void onStyleLoaded()?,
})

Initializes the plugin and sets up the necessary event listeners. This method should be called when the plugin object is constructed.

Implementation

void init({
  void Function()? onMapReady,
  void Function(double latitude, double longitude)? onMapClick,
  void Function()? onMapRendered,
  void Function()? onStyleLoaded,
}) {
  throw UnimplementedError('init() has not been implemented.');
}