getLocation function

Location getLocation(
  1. String locationName
)

Find Location by its name.

final detroit = getLocation('America/Detroit');

Implementation

Location getLocation(String locationName) {
  return _database.get(locationName);
}