instance property

LinkAccountPlatform get instance

The default instance of LinkAccountPlatform to use.

Defaults to MethodChannelLinkAccount.

Implementation

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

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

Implementation

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