Cell constructor

Cell({
  1. OutPoint? outPoint,
  2. Int64? capacity,
  3. Script? lock,
  4. Script? type,
  5. List<int>? data,
  6. Int64? blockNumber,
  7. List<int>? blockHash,
  8. Int64? since,
  9. List<int>? inputType,
  10. List<int>? outputType,
})

Implementation

factory Cell({
  OutPoint? outPoint,
  $fixnum.Int64? capacity,
  Script? lock,
  Script? type,
  $core.List<$core.int>? data,
  $fixnum.Int64? blockNumber,
  $core.List<$core.int>? blockHash,
  $fixnum.Int64? since,
  $core.List<$core.int>? inputType,
  $core.List<$core.int>? outputType,
}) {
  final _result = create();
  if (outPoint != null) {
    _result.outPoint = outPoint;
  }
  if (capacity != null) {
    _result.capacity = capacity;
  }
  if (lock != null) {
    _result.lock = lock;
  }
  if (type != null) {
    _result.type = type;
  }
  if (data != null) {
    _result.data = data;
  }
  if (blockNumber != null) {
    _result.blockNumber = blockNumber;
  }
  if (blockHash != null) {
    _result.blockHash = blockHash;
  }
  if (since != null) {
    _result.since = since;
  }
  if (inputType != null) {
    _result.inputType = inputType;
  }
  if (outputType != null) {
    _result.outputType = outputType;
  }
  return _result;
}