instance property

AnylinkPlatform get instance

The default instance of AnylinkPlatform to use.

Defaults to MethodChannelAnylink.

Implementation

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

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

Implementation

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