instance property

NmeaPluginPlatform get instance

The default instance of NmeaPluginPlatform to use.

Defaults to MethodChannelNmeaPlugin.

Implementation

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

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

Implementation

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