instance property

FileDownloaderPlatform get instance

The default instance of FileDownloaderPlatform to use.

Defaults to MethodChannelFileDownloader.

Implementation

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

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

Implementation

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