instance property

AppsListPlatform get instance

The default instance of AppsListPlatform to use.

Defaults to MethodChannelAppsList.

Implementation

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

Sets the instance of the platform implementation.

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

Implementation

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