PcoPeopleWorkflowCardQuery class Null safety

Creates a PcoPeopleWorkflowCardQuery object

Possible Includes

(translates to url parameter: ?include=a,b)

Related data may be included by marking desired includeSomething variables as true:

  • includeAssignee: include associated assignee
  • includeCurrentStep: include associated current_step
  • includePerson: include associated person
  • includeWorkflow: include associated workflow
  • includeAllRelated: include all related objects

Alternatively, you may pass a list of strings to the include argument.

e.g. PcoPeopleWorkflowCardQuery(includes: ['a', 'b'])

Possible Query Fields

(translates to url parameters like ?where[field_name]=value or ?where[field_name][gt|lt]=value)

PcoPeopleWorkflowCard objects can be requested with one or more of the following criteria:

  • whereStage: query on a specific stage, example: ?wherestage=string

For each, you may specify a prefix of <, <=, >, >= to query by comparisons

Alternatively, you may pass a List of PlanningCenterApiWhere objects to the where field e.g. PlanningCenterApiQuery(where: [PlanningCenterApiWhere('created_at', '2021-01-01', 'gte')]) See documentation for PlanningCenterApiQuery for more details about the where field.

Possible Ordering

(translates to url parameter: ?order=-updated_at)

Results can be ordered by setting orderBy to an appropriate enum value:

  • PcoPeopleWorkflowCardOrder.completedAt : will order by completed_at
  • PcoPeopleWorkflowCardOrder.createdAt : will order by created_at
  • PcoPeopleWorkflowCardOrder.flaggedForNotificationAt : will order by flagged_for_notification_at
  • PcoPeopleWorkflowCardOrder.movedToStepAt : will order by moved_to_step_at
  • PcoPeopleWorkflowCardOrder.removedAt : will order by removed_at
  • PcoPeopleWorkflowCardOrder.stage : will order by stage
  • PcoPeopleWorkflowCardOrder.updatedAt : will order by updated_at

To reverse the order, set reverse to true.

Alternatively, you may pass a string to the order field directly (a prefix of - reverses the order). e.g. PlanningCenterApiQuery(order: '-updated_at')

Extra Params

Many API queries accept extra parameters too. The extraParams mapping will translate directly to url parameters.



PcoPeopleWorkflowCardQuery({bool includeAssignee = false, bool includeCurrentStep = false, bool includePerson = false, bool includeWorkflow = false, bool includeAllRelated = false, String? whereStage, PcoPeopleWorkflowCardFilter? filterBy, PcoPeopleWorkflowCardOrder? 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>[]})


asApiMap Map<String, dynamic>
asMap Map<String, dynamic>
extraParams Map<String, String>
extraParams allows you to specify arbitrary url parameters to the API.
read / writeinherited
filter Set<String>
filter should be something like future, past, after, before, no_dates
read / writeinherited
getAll bool
Set this flag to automatically retrieve all possible items for this query
read / writeinherited
hashCode int
The hash code for this object.
include Set<String>
include specifies which related items should be included.
read / writeinherited
order String?
order can usually be one of created_at, updated_at, title, sort_date, but may be others.
read / writeinherited
pageOffset int
read / writeinherited
perPage int
Pagination defaults to 25, maximum allowed seems to be 100
runtimeType Type
A representation of the runtime type of the object.
where List<PlanningCenterApiWhere>
where should be a map of query parameters.
read / writeinherited


copy() PlanningCenterApiQuery
returns a copy of this query as a new object this method works because Strings and ints are always copied by value
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
withOffset(int offset) PlanningCenterApiQuery
returns a new query only modifying the offset value


operator ==(Object other) bool
The equality operator.

Static Methods

filterString(PcoPeopleWorkflowCardFilter filter) String
orderString(PcoPeopleWorkflowCardOrder order, {bool reverse = false}) String