instance property

UsageTrackerPlatform get instance

The default instance of UsageTrackerPlatform to use.

Defaults to MethodChannelUsageTracker.

Implementation

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

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

Implementation

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