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