instance property

NovelReaderPlatform get instance

The default instance of NovelReaderPlatform to use.

Defaults to MethodChannelNovelReader.

Implementation

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

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

Implementation

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