TimeZoneStatus enum Core
Enumerates the type of response from the timezone plugin.
Status for timezone lookup results.
Indicates the outcome of a timezone lookup performed by the TimezoneService. The status focuses on the quality and validity of the timezone data (for example: whether the input was malformed or the service had to fall back to obsolete data).
The values cover successful lookups, input errors and situations where the service had to use stale/obsolete data.
See also:
- TimezoneResult — The result object that exposes the status and offsets.
- TimezoneService — Methods that return a TimezoneResult.
Values
- success → const TimeZoneStatus
-
The lookup succeeded and returned up-to-date timezone information.
- invalidCoordinate → const TimeZoneStatus
-
The provided geographic coordinates were invalid or out of range.
- wrongTimezoneId → const TimeZoneStatus
-
The provided timezone identifier was malformed or not recognized.
- wrongTimestamp → const TimeZoneStatus
-
The provided timestamp was invalid or could not be parsed.
- timezoneNotFound → const TimeZoneStatus
-
No timezone could be found for the given input.
- successUsingObsoleteData → const TimeZoneStatus
-
The lookup succeeded, but the service had to use obsolete (outdated) timezone data. This commonly happens when the offline dataset is not up-to-date; update the SDK or the offline time zone data when possible.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
TimeZoneStatus> - A constant List of the values in this enum, in order of their declaration.