instance property

OpenDocumentPlatform get instance

The default instance of OpenDocumentPlatform to use.

Defaults to MethodChannelOpenDocument.

Implementation

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

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

Implementation

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