instance property

DocumentPlatform get instance

The default instance of DocumentPlatform to use.

Defaults to DocumentMethodChannel, which uses method channels to communicate with the native platform.

Implementation

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

Sets the default instance of DocumentPlatform.

Platform-specific plugins should call this method to register their implementation.

Implementation

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