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