copyWith method

TasksQuery copyWith({
  1. List<int>? uids,
  2. List<int>? canceledBy,
  3. List<String>? statuses,
  4. List<String>? types,
  5. List<String>? indexUids,
})

Implementation

TasksQuery copyWith({
  List<int>? uids,
  List<int>? canceledBy,
  List<String>? statuses,
  List<String>? types,
  List<String>? indexUids,
}) {
  return TasksQuery(
    from: from,
    limit: limit,
    beforeEnqueuedAt: beforeEnqueuedAt,
    afterEnqueuedAt: afterEnqueuedAt,
    beforeStartedAt: beforeStartedAt,
    afterStartedAt: afterStartedAt,
    beforeFinishedAt: beforeFinishedAt,
    afterFinishedAt: afterFinishedAt,
    uids: uids ?? this.uids,
    canceledBy: canceledBy ?? this.canceledBy,
    statuses: statuses ?? this.statuses,
    types: types ?? this.types,
    indexUids: indexUids ?? this.indexUids,
  );
}