SerializableTimeSignal class final

Represents a serializable time signal from the TrustedTime API, containing information about time measurement accuracy and current time.

This class includes:

  • Initial time acquisition error estimates
  • Current time information with error bounds
  • Null safety for scenarios where time data is unavailable

Constructors

SerializableTimeSignal.new({required int acquisitionEstimatedErrorMillis, SerializableCurrentInstant? currentInstant})
Creates a new SerializableTimeSignal instance.
const
SerializableTimeSignal.fromMap(Map<Object?, Object?> map)
Creates a SerializableTimeSignal from a map structure, typically received from the platform-specific code.
factory

Properties

acquisitionEstimatedErrorMillis int
The estimated error (in milliseconds) for the initial time acquisition from Google's time servers. This represents the uncertainty in the initial synchronization process.
final
currentInstant SerializableCurrentInstant?
Detailed information about the current time instant, including the timestamp and its error estimate. May be null if current time computation fails or if the time signal is too old.
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override