copyWith method

TransferModel copyWith({
  1. String? id,
  2. String? createdAt,
  3. String? amountCents,
  4. String? amountLocalized,
  5. Receiver? receiver,
})

Implementation

TransferModel copyWith({
  String? id,
  String? createdAt,
  String? amountCents,
  String? amountLocalized,
  Receiver? receiver,
}) {
  return TransferModel(
    id: id ?? this.id,
    createdAt: createdAt ?? this.createdAt,
    amountCents: amountCents ?? this.amountCents,
    amountLocalized: amountLocalized ?? this.amountLocalized,
    receiver: receiver ?? this.receiver,
  );
}