TxOutput constructor

TxOutput({
  1. String? address,
  2. Int64? amount,
  3. Iterable<TokenAmount>? tokenAmount,
})

Implementation

factory TxOutput({
  $core.String? address,
  $fixnum.Int64? amount,
  $core.Iterable<TokenAmount>? tokenAmount,
}) {
  final _result = create();
  if (address != null) {
    _result.address = address;
  }
  if (amount != null) {
    _result.amount = amount;
  }
  if (tokenAmount != null) {
    _result.tokenAmount.addAll(tokenAmount);
  }
  return _result;
}