instance property

RootPlusPlatform get instance

The default instance of RootPlusPlatform to use.

Defaults to MethodChannelRootPlus.

Implementation

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

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

Implementation

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