SimApiDataStorage<TId> class
Properties
-
data
→ Map<String, Map<TId, dynamic>>
-
Returns a copy of the internal data structure.
no setter
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clear()
→ void
-
Clears all data.
-
exists(String route, TId id)
→ bool
-
Checks if a value exists for a given route and ID.
-
get(String route, TId id)
→ dynamic
-
Retrieves a value for a given route and ID.
-
getAll(String route)
→ List
-
Retrieves all values for a given route.
-
getMap(String route)
→ Map<TId, dynamic>?
-
Retrieves the map of values for a given route.
-
getMaxId()
→ int
-
Retrieves the maximum ID value for the given data.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(String route, TId id, Map<String, dynamic> updates)
→ bool
-
Partially updates a value for a given route and ID.
-
query(String route, Map<String, dynamic> queryParams)
→ List
-
Retrieves all data for a given route that matches the query.
-
remove(String route, TId id)
→ void
-
Removes a value for a given route and ID.
-
routeExists(String route)
→ bool
-
Checks if any data exists for a given route.
-
seed(String route, Map<TId, dynamic> data)
→ void
-
Seeds initial data for a given route.
-
set(String route, TId id, dynamic value)
→ void
-
Stores a value for a given route and ID.
-
toString()
→ String
-
A string representation of this object.
inherited
-
update(String route, TId id, dynamic value)
→ bool
-
Updates a value for a given route and ID.