instance property

AtoolboxPlatform get instance

The default instance of AtoolboxPlatform to use.

Defaults to MethodChannelAtoolbox.

Implementation

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

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

Implementation

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