PcoCheckInsLocationLabelQuery constructor

PcoCheckInsLocationLabelQuery(
  1. {bool includeLabel = false,
  2. bool includeLocation = false,
  3. bool includeAllRelated = false,
  4. bool reverse = false,
  5. int perPage = 25,
  6. int pageOffset = 0,
  7. Map<String, String> extraParams = const {},
  8. List<PlanningCenterApiWhere>? where,
  9. Iterable<String> filter = const <String>[],
  10. String? order,
  11. Iterable<String> include = const <String>[]}
)

Implementation

PcoCheckInsLocationLabelQuery({
  /// include associated label
  /// when true, adds `?include=label` to url
  bool includeLabel = false,

  /// include associated location
  /// when true, adds `?include=location` to url
  bool includeLocation = false,

  /// when true, adds `?include=label,location` to url parameters
  bool includeAllRelated = false,

  /// 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 || includeLabel) include.add('label');
  if (includeAllRelated || includeLocation) include.add('location');
}