set method

void set(
  1. String route,
  2. TId id,
  3. dynamic value
)

Stores a value for a given route and ID.

  • route: The route where the value should be stored.
  • id: The ID associated with the value.
  • value: The value to be stored.

Implementation

void set(String route, TId id, dynamic value) {
  value['id'] = id.toString();
  _data.putIfAbsent(route, () => {})[id] = value;
}