hydrate method

  1. @override
Future<HydrationData> hydrate([
  1. Set<StoreReference>? refs
])
override

Hydration function called to read data from persistence. If no entities are specified, then it hydrations all persisted data. if entities are specified, it hydrates only the data from the paths under those entities.

Implementation

@override
hydrate([refs]) async {
  final response = await _sendMessage(
    HydrateMessageRequest(refs?.map((entity) => entity.path).toList()),
  );
  return response.data;
}