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