SerializableCurrentInstant class final

Represents a specific time instant from the TrustedTime API, including the timestamp and its error estimate.

This class provides:

  • The actual timestamp in milliseconds since Unix epoch
  • The estimated error margin for this timestamp
  • Null safety for both values in case of unavailability

Constructors

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

Properties

estimatedErrorMillis int?
The estimated error (in milliseconds) for the current timestamp. May be null if error estimation fails.
final
hashCode int
The hash code for this object.
no setteroverride
instantMillis int?
The current timestamp in milliseconds since Unix epoch. May be null if time computation fails.
final
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