getById method

T? getById(
  1. String id
)

Fetch an element by its identifier

Implementation

T? getById(String id) {
  return _map[id];
}