instance property

ProductNamePlatform get instance

The default instance of ProductNamePlatform to use.

Defaults to MethodChannelProductName.

Implementation

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

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

Implementation

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