instance property

AppDataUsagePlatform get instance

The default instance of AppDataUsagePlatform to use.

Defaults to MethodChannelAppDataUsage.

Implementation

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

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

Implementation

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