getAvailableTimezones static method

Future<List<String>> getAvailableTimezones()

Gets the list of available timezones from the native layer.

Implementation

static Future<List<String>> getAvailableTimezones() async {
  final List<String>? availableTimezones =
      await _channel.invokeListMethod<String>("getAvailableTimezones");
  if (availableTimezones == null) {
    throw ArgumentError(
        "Invalid return from platform getAvailableTimezones()");
  }
  return availableTimezones;
}