instance property

OtplessFlutterPlatform get instance

The default instance of OtplessFlutterPlatform to use.

Defaults to MethodChannelOtplessFlutter.

Implementation

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

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

Implementation

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