instance property

DiskUsagePlatform get instance

The default instance of DiskUsagePlatform to use.

Defaults to MethodChannelDiskUsage.

Implementation

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

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

Implementation

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