instance property

AnfuPlatform get instance

The default instance of AnfuPlatform to use.

Defaults to MethodChannelAnfu.

Implementation

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

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

Implementation

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