instance property Null safety

GoogleSignInPlatform instance

The default instance of GoogleSignInPlatform to use.

Platform-specific plugins should override this with their own platform-specific class that extends GoogleSignInPlatform when they register themselves.

Defaults to MethodChannelGoogleSignIn.

Implementation

static GoogleSignInPlatform get instance => _instance;
void instance=(GoogleSignInPlatform instance)

Implementation

static set instance(GoogleSignInPlatform instance) {
  if (!instance.isMock) {
    try {
      instance._verifyProvidesDefaultImplementations();
    } on NoSuchMethodError catch (_) {
      throw AssertionError(
          'Platform interfaces must not be implemented with `implements`');
    }
  }
  _instance = instance;
}