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