instance property

DiskCapacityPlatform get instance

The default instance of DiskCapacityPlatform to use.

Defaults to MethodChannelDiskCapacity.

Implementation

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

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

Implementation

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