getAvailableTimezones static method
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;
}