toStatus method

set status property, returning a new immutable RawTransactionImpl copy

Implementation

RawTransactionImpl toStatus(TransactionStatus status) => this.status == status
    ? this
    : RawTransactionImpl(
        txId: txId,
        blockHash: blockHash,
        blockIndex: blockIndex,
        status: status,
        fees: fees,
        inputs: List.from(inputs),
        outputs: List.from(outputs),
        time: time,
      );