instance property

The default instance of DesktopClipboardPlatform to use.

Defaults to MethodChannelDesktopClipboard.

Implementation

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

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

Implementation

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