instance property

HappyLoginPlatform get instance

The default instance of HappyLoginPlatform to use.

Defaults to MethodChannelHappyLogin.

Implementation

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

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

Implementation

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