exists method

bool exists(
  1. String route,
  2. TId id
)

Checks if a value exists for a given route and ID.

  • route: The route to check.
  • id: The ID to check.

Returns:

  • true if the value exists, or false if it does not.

Implementation

bool exists(String route, TId id) {
  return _data[route]?.containsKey(id) ?? false;
}