instance property
OpenDownloadsPlatform
get
instance
The default instance of OpenDownloadsPlatform to use.
Defaults to MethodChannelOpenDownloads.
Implementation
static OpenDownloadsPlatform get instance => _instance;
set
instance
(OpenDownloadsPlatform instance)
Platform-specific implementations should set this with their own platform-specific class that extends OpenDownloadsPlatform when they register themselves.
Implementation
static set instance(OpenDownloadsPlatform instance) {
PlatformInterface.verifyToken(instance, _token);
_instance = instance;
}