instance property

WhatsfilePlatform get instance

The default instance of WhatsfilePlatform to use.

Defaults to MethodChannelWhatsfile.

Implementation

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

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

Implementation

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