operator [] method

dynamic operator [](
  1. String key
)

Syntactic sugar to access the otherLocations values by subscripting Locations directly. locations["cssSelector"] == locations.otherLocations["cssSelector"]

Implementation

dynamic operator [](String key) => otherLocations[key];