init method

  1. @override
Future<void> init(
  1. int mapId
)
override

/// Initializes the platform interface with id.

This method is called when the plugin is first initialized.

Implementation

@override
Future<void> init(int mapId) {
  final MethodChannel channel = ensureChannelInitialized(mapId);
  return channel.invokeMethod<void>('map#waitForMap');
}