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