copyWith method
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,
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,
);