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