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