loadBulk<T> method
Loads an array of states from the store using their keys.
context
(optional) a context to trace execution through call chain.keys
unique state keys. Returns an array with state values.
Implementation
@override
Future<List<StateValue<T>>> loadBulk<T>(
IContext? context, List<String> keys) async {
// Cleanup the stored states
_cleanup();
var result = <StateValue<T>>[];
for (var key in keys) {
var value = await load<T>(context, key);
result.add(StateValue(key, value));
}
return result;
}