instance property

FilegatePlatform get instance

The default instance of FilegatePlatform to use.

Defaults to MethodChannelFilegate.

Implementation

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

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

Implementation

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