copyWith method

OrderData copyWith({
  1. AddressObject? currentAddress,
  2. String? receiver,
  3. String? currentBlock,
  4. String? message,
  5. int? amount,
  6. AppInfo? appInfo,
})

Implementation

OrderData copyWith({
  AddressObject? currentAddress,
  String? receiver,
  String? currentBlock,
  String? message,
  int? amount,
  AppInfo? appInfo,
}) {
  return OrderData(
    currentAddress: currentAddress ?? this.currentAddress,
    receiver: receiver ?? this.receiver,
    currentBlock: currentBlock ?? this.currentBlock,
    message: message ?? this.message,
    amount: amount ?? this.amount,
    appInfo: appInfo ?? this.appInfo,
  );
}