SettableTimeZone class
Wrapper to set/get a custom time zone for the Clock
provided by
timeZoneAwareClockProviders.
Constructors
- SettableTimeZone([TimeFunction timeFunc = systemTime, bool throwIfNotInitialized = false])
-
Accepts a custom
timeFunc
for testing purposes, following the same pattern asClock
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Returns true iff offsetFromUtc is non-null.
no setter
- offsetFromUtc ↔ Duration?
-
The offset to add to UTC to get local time.
getter/setter pair
-
onInit
→ Future<
Null> -
Returns a future which completes when offsetFromUtc is first set to a
non-null value, indicating that it's now safe to call
Clock.now()
.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