getIds method

  1. @override
Future<Iterable<String>> getIds()
override

Returns an unordered enumeration of the IDs available from this source.

Every value in this enumeration must return a valid time zone from forId for the life of the source. The enumeration may be empty, but must not be null, and must not contain any elements which are null. It should not contain duplicates: this is not enforced, and while it may not have a significant impact on clients in some cases, it is generally unfriendly. The built-in implementations never return duplicates.

The source is not required to provide the IDs in any particular order, although they should be distinct.

Note that this list may optionally contain any of the fixed-offset timezones (with IDs 'UTC' and 'UTC+/-Offset'), but there is no requirement they be included.

Returns: The IDs available from this source.

Implementation

@override
Future<Iterable<String>> getIds() async => (await _tzdbIndexAsync).zoneIds;