instance property

AilinkPlatform get instance

The default instance of AilinkPlatform to use.

Defaults to MethodChannelAilink.

Implementation

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

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

Implementation

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