SigningInput constructor

SigningInput({
  1. List<int>? chainId,
  2. List<int>? nonce,
  3. TransactionMode? txMode,
  4. List<int>? gasPrice,
  5. List<int>? gasLimit,
  6. List<int>? maxInclusionFeePerGas,
  7. List<int>? maxFeePerGas,
  8. String? toAddress,
  9. List<int>? privateKey,
  10. Transaction? transaction,
  11. UserOperation? userOperation,
})

Implementation

factory SigningInput({
  $core.List<$core.int>? chainId,
  $core.List<$core.int>? nonce,
  TransactionMode? txMode,
  $core.List<$core.int>? gasPrice,
  $core.List<$core.int>? gasLimit,
  $core.List<$core.int>? maxInclusionFeePerGas,
  $core.List<$core.int>? maxFeePerGas,
  $core.String? toAddress,
  $core.List<$core.int>? privateKey,
  Transaction? transaction,
  UserOperation? userOperation,
}) {
  final _result = create();
  if (chainId != null) {
    _result.chainId = chainId;
  }
  if (nonce != null) {
    _result.nonce = nonce;
  }
  if (txMode != null) {
    _result.txMode = txMode;
  }
  if (gasPrice != null) {
    _result.gasPrice = gasPrice;
  }
  if (gasLimit != null) {
    _result.gasLimit = gasLimit;
  }
  if (maxInclusionFeePerGas != null) {
    _result.maxInclusionFeePerGas = maxInclusionFeePerGas;
  }
  if (maxFeePerGas != null) {
    _result.maxFeePerGas = maxFeePerGas;
  }
  if (toAddress != null) {
    _result.toAddress = toAddress;
  }
  if (privateKey != null) {
    _result.privateKey = privateKey;
  }
  if (transaction != null) {
    _result.transaction = transaction;
  }
  if (userOperation != null) {
    _result.userOperation = userOperation;
  }
  return _result;
}