instance property

FlutterPmtilesPlatform get instance

The default instance of FlutterPmtilesPlatform to use.

Defaults to MethodChannelFlutterPmtiles.

Implementation

static FlutterPmtilesPlatform get instance => _instance;
set instance (FlutterPmtilesPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends FlutterPmtilesPlatform when they register themselves.

Implementation

static set instance(FlutterPmtilesPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}