instance property

HandoffPlatform get instance

The default instance of HandoffPlatform to use.

Defaults to MethodChannelHandoff.

Implementation

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

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

Implementation

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