copyWith method
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,
);
}