copy method

TxOutput copy()

creates a copy of the object

Implementation

TxOutput copy() {
  return TxOutput(amount: amount, scriptPubKey: scriptPubKey);
}