peekMany method

  1. @override
JsonApiManyDocument peekMany(
  1. String endpoint,
  2. Iterable<String> ids
)
override

Implementation

@override
JsonApiManyDocument peekMany(String endpoint, Iterable<String> ids) {
  List<JsonApiDocument> cachedDocs = ids
      .map((id) => peek(endpoint, id))
      .whereType<JsonApiDocument>()
      .toList();
  return JsonApiManyDocument(cachedDocs);
}