copyWith method

TransactionResponse copyWith({
  1. String? digest,
  2. List<String>? signatures,
  3. String? epoch,
  4. ExecutionStatus? status,
  5. String? transaction,
  6. TransactionEffects? effects,
  7. List<Event>? events,
  8. List<BalanceChange>? balanceChanges,
  9. Map<String, String>? objectTypes,
  10. Uint8List? bcs,
  11. String? checkpoint,
  12. String? timestampMs,
  13. List<CommandResult>? commandResults,
})

Implementation

TransactionResponse copyWith({
  String? digest,
  List<String>? signatures,
  String? epoch,
  ExecutionStatus? status,
  String? transaction,
  TransactionEffects? effects,
  List<Event>? events,
  List<BalanceChange>? balanceChanges,
  Map<String, String>? objectTypes,
  Uint8List? bcs,
  String? checkpoint,
  String? timestampMs,
  List<CommandResult>? commandResults,
}) {
  return TransactionResponse(
    digest: digest ?? this.digest,
    signatures: signatures ?? this.signatures,
    epoch: epoch ?? this.epoch,
    status: status ?? this.status,
    transaction: transaction ?? this.transaction,
    effects: effects ?? this.effects,
    events: events ?? this.events,
    balanceChanges: balanceChanges ?? this.balanceChanges,
    objectTypes: objectTypes ?? this.objectTypes,
    bcs: bcs ?? this.bcs,
    checkpoint: checkpoint ?? this.checkpoint,
    timestampMs: timestampMs ?? this.timestampMs,
    commandResults: commandResults ?? this.commandResults,
  );
}