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