instance property

ResearchPlatform get instance

The default instance of ResearchPlatform to use.

Defaults to MethodChannelResearch.

Implementation

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

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

Implementation

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