PcoServicesTeamLeaderQuery constructor
PcoServicesTeamLeaderQuery({
- bool includePeople = false,
- bool includeTeam = false,
- bool includeAllRelated = false,
- PcoServicesTeamLeaderFilter? filterBy,
- PcoServicesTeamLeaderOrder? orderBy,
- bool reverse = false,
- int perPage = 25,
- int pageOffset = 0,
- Map<
String, String> extraParams = const {}, - List<
PlanningCenterApiWhere> ? where, - Iterable<
String> filter = const <String>[], - String? order,
- Iterable<
String> include = const <String>[],
Implementation
PcoServicesTeamLeaderQuery({
/// include associated people
/// when true, adds `?include=people` to url
bool includePeople = false,
/// include associated team
/// when true, adds `?include=team` to url
bool includeTeam = false,
/// when true, adds `?include=people,team` to url parameters
bool includeAllRelated = false,
PcoServicesTeamLeaderFilter? filterBy,
PcoServicesTeamLeaderOrder? orderBy,
/// reverse the ordering
bool reverse = false,
// direct access to super class params
super.perPage,
super.pageOffset,
super.extraParams,
super.where,
super.filter,
super.order,
super.include,
}) : super() {
if (filterBy != null) filter.add(filterString(filterBy));
if (includeAllRelated || includePeople) include.add('people');
if (includeAllRelated || includeTeam) include.add('team');
if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}