getLocation method

Future<Location> getLocation([
  1. String? timeZoneName
])

Returns a Location object from the specified timezone.

Implementation

Future<t.Location> getLocation([String? timeZoneName]) async {
  if (timeZoneName == null || timeZoneName.isEmpty) {
    timeZoneName = await getTimeZoneName();
  }
  return t.getLocation(timeZoneName);
}