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