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