instance property

MapboxMapsFlutterPlatform get instance

The default instance of MapboxMapsFlutterPlatform to use.

This is the default instance that will be used by the MapboxMapsFlutterPlatform class.

Implementation

static MapboxMapsFlutterPlatform get instance {
  if (_instance == null) {
    throw AssertionError(
      'No default instance of MapboxMapsFlutterPlatform has been set. '
      'Ensure that you have called MapboxMapsFlutterPlatform.setInstance() '
      'before using the MapboxMapsFlutterPlatform instance.',
    );
  }
  return _instance!;
}
set instance (MapboxMapsFlutterPlatform instance)

Implementation

static set instance(MapboxMapsFlutterPlatform instance) {
  _instance = instance;
}