RawTransaction constructor

RawTransaction({
  1. List<int>? hash,
  2. List<int>? from,
  3. List<int>? to,
  4. List<int>? value,
  5. Int64? nonce,
  6. Int64? timestamp,
  7. Data? data,
  8. int? chainId,
  9. List<int>? gasPrice,
  10. List<int>? gasLimit,
  11. int? alg,
  12. List<int>? sign,
})

Implementation

factory RawTransaction({
  $core.List<$core.int>? hash,
  $core.List<$core.int>? from,
  $core.List<$core.int>? to,
  $core.List<$core.int>? value,
  $fixnum.Int64? nonce,
  $fixnum.Int64? timestamp,
  Data? data,
  $core.int? chainId,
  $core.List<$core.int>? gasPrice,
  $core.List<$core.int>? gasLimit,
  $core.int? alg,
  $core.List<$core.int>? sign,
}) {
  final _result = create();
  if (hash != null) {
    _result.hash = hash;
  }
  if (from != null) {
    _result.from = from;
  }
  if (to != null) {
    _result.to = to;
  }
  if (value != null) {
    _result.value = value;
  }
  if (nonce != null) {
    _result.nonce = nonce;
  }
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (data != null) {
    _result.data = data;
  }
  if (chainId != null) {
    _result.chainId = chainId;
  }
  if (gasPrice != null) {
    _result.gasPrice = gasPrice;
  }
  if (gasLimit != null) {
    _result.gasLimit = gasLimit;
  }
  if (alg != null) {
    _result.alg = alg;
  }
  if (sign != null) {
    _result.sign = sign;
  }
  return _result;
}