copyWith method

PaginationParams copyWith({
  1. int? limit,
  2. int? before,
  3. int? after,
  4. int? offset,
  5. String? idAround,
  6. String? next,
  7. String? greaterThan,
  8. String? greaterThanOrEqual,
  9. String? lessThan,
  10. String? lessThanOrEqual,
  11. DateTime? createdAtAfterOrEqual,
  12. DateTime? createdAtAfter,
  13. DateTime? createdAtBeforeOrEqual,
  14. DateTime? createdAtBefore,
  15. DateTime? createdAtAround,
})

Creates a copy of PaginationParams with specified attributes overridden.

Implementation

PaginationParams copyWith({
  int? limit,
  int? before,
  int? after,
  int? offset,
  String? idAround,
  String? next,
  String? greaterThan,
  String? greaterThanOrEqual,
  String? lessThan,
  String? lessThanOrEqual,
  DateTime? createdAtAfterOrEqual,
  DateTime? createdAtAfter,
  DateTime? createdAtBeforeOrEqual,
  DateTime? createdAtBefore,
  DateTime? createdAtAround,
}) =>
    PaginationParams(
      limit: limit ?? this.limit,
      offset: offset ?? this.offset,
      idAround: idAround ?? this.idAround,
      next: next ?? this.next,
      greaterThan: greaterThan ?? this.greaterThan,
      greaterThanOrEqual: greaterThanOrEqual ?? this.greaterThanOrEqual,
      lessThan: lessThan ?? this.lessThan,
      lessThanOrEqual: lessThanOrEqual ?? this.lessThanOrEqual,
      createdAtAfterOrEqual:
          createdAtAfterOrEqual ?? this.createdAtAfterOrEqual,
      createdAtAfter: createdAtAfter ?? this.createdAtAfter,
      createdAtBeforeOrEqual:
          createdAtBeforeOrEqual ?? this.createdAtBeforeOrEqual,
      createdAtBefore: createdAtBefore ?? this.createdAtBefore,
      createdAtAround: createdAtAround ?? this.createdAtAround,
    );