getAllStarFromList static method
Future<PcoCollection<PcoPeopleListStar> >
getAllStarFromList(
- String listId, {
- String? id,
- PcoPeopleListStarQuery? query,
Will get a PcoCollection
containing ALL PcoPeopleListStar objects (expecting many)
using a path like this: /people/v2/lists/$listId/star
Additional options may be specified by using the query
argument, but some
query options are also available as boolean flags in this function call too.
This function forces the query.getAll
to be true.
Implementation
static Future<PcoCollection<PcoPeopleListStar>> getAllStarFromList(
String listId, {
String? id,
PcoPeopleListStarQuery? query,
}) async {
query ??= PcoPeopleListStarQuery();
query.getAll = true;
var url = '/people/v2/lists/$listId/star';
if (id != null) url += '/$id';
return PcoCollection.fromApiCall<PcoPeopleListStar>(url,
query: query, apiVersion: kApiVersion);
}