getLocalTimeZoneIdentifier method
Returns the identifier for the device's local time zone.
The identifier for a time zone is a string in the format "Area/Location", where "Area" is a continent or ocean name, and "Location" is a city or region within the area. For example, the identifier for the time zone of New York City is "America/New_York".
This method returns a Future that resolves to a String value containing the identifier for the device's local time zone.
Implementation
@override
Future<String> getLocalTimeZoneIdentifier() async {
final String localIdentifier = await methodChannel
.invokeMethod(CHANNEL_METHOD_GET_LOCAL_TIMEZONE_IDENTIFIER);
return localIdentifier;
}