instance property

IvsBroadcasterPlatform get instance

Gets the current instance of IvsBroadcasterPlatform.

This will return the platform-specific implementation being used (e.g., MethodChannelIvsBroadcaster).

Implementation

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

Sets a new platform-specific implementation of IvsBroadcasterPlatform.

The instance must extend IvsBroadcasterPlatform and will be verified using a unique token. This allows for flexibility in swapping out the underlying platform-specific implementation.

Implementation

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