instance property
FlutterPlugin123456789Platform
get
instance
The default instance of FlutterPlugin123456789Platform to use.
Defaults to MethodChannelFlutterPlugin123456789.
Implementation
static FlutterPlugin123456789Platform get instance => _instance;
set
instance
(FlutterPlugin123456789Platform instance)
Platform-specific implementations should set this with their own platform-specific class that extends FlutterPlugin123456789Platform when they register themselves.
Implementation
static set instance(FlutterPlugin123456789Platform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}