TrustedTimeResult class
The result of a GmsTrustedTime.getTrustedTimeWithAccuracy call.
Contains the trusted UTC epoch time alongside an optional accuracy estimate provided by the Google Play Services TrustedTime API.
Constructors
- TrustedTimeResult({required int epochMillis, int? uncertaintyNanos})
-
const
Properties
- epochMillis → int
-
Trusted UTC time in milliseconds since Unix epoch (Jan 1, 1970 00:00:00 UTC).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uncertaintyMs → double?
-
Returns the estimated time error in milliseconds, or
nullif unavailable.no setter - uncertaintyNanos → int?
-
Estimated time error in nanoseconds, as reported by GMS TrustedTime.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDateTime(
) → DateTime - Returns the trusted time as a UTC DateTime.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited