init method

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

/// Initializes the platform interface with id.

This method is called when the plugin is first initialized.

Implementation

@override
Future<void> init(int mapId) async {
  // The internal instance of our controller is initialized eagerly in `buildView`,
  // so we don't have to do anything in this method, which is left intentionally
  // blank.
  assert(_mapById[mapId] != null, 'Must call buildWidget before init!');
}