copyWith method
Pagination
copyWith(- {num? totalItems,
- num? perPage,
- num? currentPage,
- num? totalPages,
- num? from,
- num? to,
- dynamic nextPage,
- 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,
);