instance property

WebDownloaderPlatform get instance

The default instance of WebDownloaderPlatform to use.

Defaults to MethodChannelWebDownloader.

Implementation

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

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

Implementation

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