initializeTimeZones function

void initializeTimeZones()

Initialize Time Zone database from latest_10y.

Throws TimeZoneInitException when something is wrong.

Implementation

void initializeTimeZones() {
  try {
    initializeDatabase(
        Uint16List.fromList(_embeddedData.codeUnits).buffer.asUint8List());
  }
  // ignore: avoid_catches_without_on_clauses
  catch (e) {
    throw TimeZoneInitException(e.toString());
  }
}