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