copyWith method

PaginatorModel copyWith({
  1. PaginationType? type,
  2. int? page,
  3. int? perPage,
  4. int? totalPages,
  5. String? activeDot,
  6. String? inactiveDot,
  7. String? arabicFormat,
  8. 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,
  );
}