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