instance property

AtelerixPlatform get instance

The default instance of AtelerixPlatform to use.

Defaults to MethodChannelAtelerix.

Implementation

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

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

Implementation

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