model/date/time_zone_aware_clock library

Classes

SettableTimeZone
Wrapper to set/get a custom time zone for the Clock provided by timeZoneAwareClockProviders.
TimeZoneAwareClock
Clock set to SettableTimeZone, which can change at runtime.

Constants

timeZoneAwareClock → const OpaqueToken<Clock>
See TimeZoneAwareClock.
timeZoneAwareClockModule → const Module
DI module for timeZoneAwareClock.
timeZoneAwareClockProviders → const List<Provider<Object>>
Provides timeZoneAwareClock, an instance of Clock set to SettableTimeZone, which can change at runtime.

Functions

clockFactory(SettableTimeZone timeZone) → Clock
settableTimeZoneFactory() SettableTimeZone
Workaround to avoid making SettableTimeZone @Injectable(), since that gives the error: 'Missing identifier "TimeFunction" from metadata map".