PcoCheckInsLocationQuery constructor
PcoCheckInsLocationQuery({
- bool includeEvent = false,
- bool includeLocations = false,
- bool includeOptions = false,
- bool includeParent = false,
- bool includeAllRelated = false,
- PcoCheckInsLocationOrder? 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
PcoCheckInsLocationQuery({
/// include associated event
/// when true, adds `?include=event` to url
bool includeEvent = false,
/// include associated locations
/// when true, adds `?include=locations` to url
bool includeLocations = false,
/// include associated options
/// when true, adds `?include=options` to url
bool includeOptions = false,
/// include associated parent
/// when true, adds `?include=parent` to url
bool includeParent = false,
/// when true, adds `?include=event,locations,options,parent` to url parameters
bool includeAllRelated = false,
PcoCheckInsLocationOrder? 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 (includeAllRelated || includeEvent) include.add('event');
if (includeAllRelated || includeLocations) include.add('locations');
if (includeAllRelated || includeOptions) include.add('options');
if (includeAllRelated || includeParent) include.add('parent');
if (orderBy != null) order = orderString(orderBy, reverse: reverse);
}