operator [] method

KeyPage operator [](
  1. String key
)

Implementation

KeyPage operator [](String key) {
  if (_map == null)
    throw Exception(
        "The PageCollectionMap instance was accessed before it was initialized (operator [])");
  var page = _map![key];
  if (page == null)
    throw Exception(
        "Tried to access page key $key, but it couldn't be found in collection");
  return page;
}