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