readMany method

  1. @override
Future<List<Map<String, dynamic>>> readMany (
  1. List<String> ids,
  2. [Map<String, dynamic> params]
)
override

Reads multiple resources at once.

Implementation

@override
Future<List<Map<String, dynamic>>> readMany(List<String> ids,
    [Map<String, dynamic> params]) async {
  var results = <Map<String, dynamic>>[];
  ids.forEach((id) async {
    results.add(await read(id));
  });
  return results;
}