instance property

The default instance of FirebaseAnalyticsPlatform to use.

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

Defaults to MethodChannelFirebaseAnalytics.

Implementation

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

Implementation

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