instance property

HelloTestPlatform get instance

The default instance of HelloTestPlatform to use.

Defaults to MethodChannelHelloTest.

Implementation

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

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

Implementation

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