copyWith method

ListQueryParams copyWith({
  1. Map<String, dynamic>? params,
  2. String? search,
  3. Filter<T>? filter,
  4. Sort<T>? sort,
  5. int? limit,
  6. int? offset,
})

Implementation

ListQueryParams copyWith({
  Map<String, dynamic>? params,
  String? search,
  Filter<T>? filter,
  Sort<T>? sort,
  int? limit,
  int? offset,
}) {
  return ListQueryParams(
    params: params ?? this.params,
    search: search ?? this.search,
    filter: filter ?? this.filter,
    sort: sort ?? this.sort,
    limit: limit ?? this.limit,
    offset: offset ?? this.offset,
  );
}