copyWith method
PaginatorModel
copyWith({
- PaginationType? type,
- int? page,
- int? perPage,
- int? totalPages,
- String? activeDot,
- String? inactiveDot,
- String? arabicFormat,
- PaginatorKeyMap? keyMap,
Creates a copy with the given fields replaced.
Implementation
PaginatorModel copyWith({
PaginationType? type,
int? page,
int? perPage,
int? totalPages,
String? activeDot,
String? inactiveDot,
String? arabicFormat,
PaginatorKeyMap? keyMap,
}) {
return PaginatorModel(
type: type ?? this.type,
page: page ?? this.page,
perPage: perPage ?? this.perPage,
totalPages: totalPages ?? this.totalPages,
activeDot: activeDot ?? this.activeDot,
inactiveDot: inactiveDot ?? this.inactiveDot,
arabicFormat: arabicFormat ?? this.arabicFormat,
keyMap: keyMap ?? this.keyMap,
);
}