instance property

CrowdConnectedPlatform get instance

The default instance of CrowdConnectedPlatform to use.

Defaults to MethodChannelCrowdConnected.

Implementation

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

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

Implementation

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