instance property

TraccarFlutterPlatform get instance

The default instance of TraccarFlutterPlatform to use.

Defaults to MethodChannelTraccarFlutter.

Implementation

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

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

Implementation

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