TxOutput constructor

TxOutput({
  1. Int64? sats,
  2. List<int>? outputScript,
  3. SpentBy? spentBy,
  4. Token? token,
  5. Iterable<MapEntry<String, PluginEntry>>? plugins,
})

Implementation

factory TxOutput({
  $fixnum.Int64? sats,
  $core.List<$core.int>? outputScript,
  SpentBy? spentBy,
  Token? token,
  $core.Iterable<$core.MapEntry<$core.String, PluginEntry>>? plugins,
}) {
  final result = create();
  if (sats != null) result.sats = sats;
  if (outputScript != null) result.outputScript = outputScript;
  if (spentBy != null) result.spentBy = spentBy;
  if (token != null) result.token = token;
  if (plugins != null) result.plugins.addEntries(plugins);
  return result;
}