instance property

WorldtimePlatform get instance

The default instance of WorldtimePlatform to use.

Defaults to MethodChannelWorldtime.

Implementation

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

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

Implementation

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