getLocalTimezone static method
Returns local timezone from the native layer.
Implementation
static Future<String> getLocalTimezone() async {
final String? localTimezone =
await _channel.invokeMethod("getLocalTimezone");
if (localTimezone == null) {
throw ArgumentError("Invalid return from platform getLocalTimezone()");
}
return localTimezone;
}