instance property

UnixEpochTimeChannel get instance

The default instance of UnixEpochTimeChannel to use.

Implementation

static UnixEpochTimeChannel get instance =>
    ArgumentError.checkNotNull(_instance, 'instance');
set instance (UnixEpochTimeChannel instance)

Sets the default instance of UnixEpochTimeChannel to use.

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

Implementation

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