copyWith method

PagingRestrictions copyWith({
  1. int? currentPage,
  2. int? pageSize,
  3. String? sortField,
  4. String? sortOrder,
})

Implementation

PagingRestrictions copyWith({
  int? currentPage,
  int? pageSize,
  String? sortField,
  String? sortOrder,
}) {
  return PagingRestrictions(
    currentPage: currentPage ?? this.currentPage,
    pageSize: pageSize ?? this.pageSize,
    sortField: sortField ?? this.sortField,
    sortOrder: sortOrder ?? this.sortOrder,
  );
}