copyWith method

Pagination copyWith(
  1. {num? totalItems,
  2. num? perPage,
  3. num? currentPage,
  4. num? totalPages,
  5. num? from,
  6. num? to,
  7. dynamic nextPage,
  8. dynamic previousPage}
)

Implementation

Pagination copyWith({
  num? totalItems,
  num? perPage,
  num? currentPage,
  num? totalPages,
  num? from,
  num? to,
  dynamic nextPage,
  dynamic previousPage,
}) =>
    Pagination(
      totalItems: totalItems ?? this.totalItems,
      perPage: perPage ?? this.perPage,
      currentPage: currentPage ?? this.currentPage,
      totalPages: totalPages ?? this.totalPages,
      from: from ?? this.from,
      to: to ?? this.to,
      nextPage: nextPage ?? this.nextPage,
      previousPage: previousPage ?? this.previousPage,
    );