instance property

GlobalEventBusPlatform get instance

The default instance of GlobalEventBusPlatform to use.

Defaults to MethodChannelGlobalEventBus.

Implementation

static GlobalEventBusPlatform get instance => _instance;
set instance (GlobalEventBusPlatform instance)

Platform-specific implementations should set this with their own platform-specific class that extends GlobalEventBusPlatform when they register themselves.

Implementation

static set instance(GlobalEventBusPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}