instance property

The default instance of PackageInstallerPlatform to use.

Defaults to MethodChannelPackageinstaller.

Implementation

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

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

Implementation

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