instance property

ViewpdfPlatform get instance

The default instance of ViewpdfPlatform to use.

Defaults to MethodChannelViewpdf.

Implementation

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

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

Implementation

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