copyWith method
Implementation
TransactionModel copyWith({
int? id,
int? type,
String? displayId,
num? amount,
OrderTransaction? order,
int? status,
String? phone,
DateTime? createdAt,
}) =>
TransactionModel(
id: id ?? this.id,
type: type ?? this.type,
displayId: displayId ?? this.displayId,
amount: amount ?? this.amount,
order: order ?? this.order,
status: status ?? this.status,
phone: phone ?? this.phone,
createdAt: createdAt ?? this.createdAt,
);