instance property

AnalyticsPlatform get instance

The default instance of AnalyticsPlatform to use.

Defaults to MethodChannelAnalytics.

Implementation

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

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

Implementation

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