copyWith method

PageModel copyWith({
  1. int? total,
  2. int? size,
  3. int? current,
  4. int? pages,
  5. List<OrderItemModel>? orders,
  6. List<Map<String, dynamic>>? records,
})

Implementation

PageModel copyWith({
  int? total,
  int? size,
  int? current,
  int? pages,
  List<OrderItemModel>? orders,
  List<Map<String, dynamic>>? records,
}) {
  return PageModel(
    total: total ?? this.total,
    size: size ?? this.size,
    current: current ?? this.current,
    pages: pages ?? this.pages,
    orders: orders ?? this.orders,
    records: records ?? this.records,
  );
}