instance property

FlutterHelloPlatform get instance

The default instance of FlutterHelloPlatform to use.

Defaults to MethodChannelFlutterHello.

Implementation

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

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

Implementation

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