TransactionInput constructor

TransactionInput({
  1. List<int>? prevHash,
  2. int? prevIndex,
  3. Int64? value,
  4. String? assetId,
})

Implementation

factory TransactionInput({
  $core.List<$core.int>? prevHash,
  $core.int? prevIndex,
  $fixnum.Int64? value,
  $core.String? assetId,
}) {
  final _result = create();
  if (prevHash != null) {
    _result.prevHash = prevHash;
  }
  if (prevIndex != null) {
    _result.prevIndex = prevIndex;
  }
  if (value != null) {
    _result.value = value;
  }
  if (assetId != null) {
    _result.assetId = assetId;
  }
  return _result;
}