set method
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;
}