instance property

PrintingPlatform get instance

The default instance of PrintingPlatform to use.

Defaults to MethodChannelPrinting.

Implementation

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

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

Implementation

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