instance property

NearbyServicePlatform get instance

The default instance of NearbyServicePlatform to use.

Defaults to MethodChannelNearbyService.

Implementation

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

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

Implementation

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