PcoGivingFundQuery constructor

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

Implementation

PcoGivingFundQuery({
  /// Query by `default`
  /// query on a specific default, url example: ?where[default]=true
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereDefault,

  /// Query by `id`
  /// query on a specific id, url example: ?where[id]=primary_key
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereId,

  /// Query by `name`
  /// query on a specific name, url example: ?where[name]=string
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereName,

  /// Query by `visibility`
  /// query on a specific visibility, url example: ?where[visibility]=value
  /// include a prefix of `<`, `<=`, `>`, `>=` to query by comparisons
  String? whereVisibility,

  /// 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 (whereDefault != null)
    where.add(PlanningCenterApiWhere.parse('default', whereDefault));
  if (whereId != null) where.add(PlanningCenterApiWhere.parse('id', whereId));
  if (whereName != null)
    where.add(PlanningCenterApiWhere.parse('name', whereName));
  if (whereVisibility != null)
    where.add(PlanningCenterApiWhere.parse('visibility', whereVisibility));
}