getById method

T? getById(
  1. String id
)

Finds and returns the item by id If the item is not found, null will be returned

Implementation

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