instance property

NativeOAuth2Platform get instance

The default instance of NativeOAuth2Platform to use.

Defaults to MethodChannelNativeOAuth2.

Implementation

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

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

Implementation

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