instance property

HelloPlatform get instance

The default instance of HelloPlatform to use.

Defaults to MethodChannelHello.

Implementation

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

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

Implementation

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