instance property

LocationWakeupPlatform get instance

The default instance of LocationWakeupPlatform to use.

Implementation

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

⚠️ Don't use this. If you want to mock incoming events from the device platform for testing, see the mock_channels_test where it mocks incoming events from the device platform.

However, if you are building and implementation for a platform, you can use this to set the static instance of LocationWakeupPlatform.

Implementation

// coverage:ignore-start
static set instance(LocationWakeupPlatform instance) {
  PlatformInterface.verifyToken(instance, _token);
  _instance = instance;
}