add method

void add(
  1. Location location
)

Adds Location to the database.

Implementation

void add(Location location) {
  _locations[location.name] = location;
}