Transaction constructor

Transaction({
  1. Int64? timestamp,
  2. Int64? expiration,
  3. BlockHeader? blockHeader,
  4. Int64? feeLimit,
  5. TransferContract? transfer,
  6. TransferAssetContract? transferAsset,
  7. FreezeBalanceContract? freezeBalance,
  8. UnfreezeBalanceContract? unfreezeBalance,
  9. UnfreezeAssetContract? unfreezeAsset,
  10. WithdrawBalanceContract? withdrawBalance,
  11. VoteAssetContract? voteAsset,
  12. VoteWitnessContract? voteWitness,
  13. TriggerSmartContract? triggerSmartContract,
  14. TransferTRC20Contract? transferTrc20Contract,
})

Implementation

factory Transaction({
  $fixnum.Int64? timestamp,
  $fixnum.Int64? expiration,
  BlockHeader? blockHeader,
  $fixnum.Int64? feeLimit,
  TransferContract? transfer,
  TransferAssetContract? transferAsset,
  FreezeBalanceContract? freezeBalance,
  UnfreezeBalanceContract? unfreezeBalance,
  UnfreezeAssetContract? unfreezeAsset,
  WithdrawBalanceContract? withdrawBalance,
  VoteAssetContract? voteAsset,
  VoteWitnessContract? voteWitness,
  TriggerSmartContract? triggerSmartContract,
  TransferTRC20Contract? transferTrc20Contract,
}) {
  final _result = create();
  if (timestamp != null) {
    _result.timestamp = timestamp;
  }
  if (expiration != null) {
    _result.expiration = expiration;
  }
  if (blockHeader != null) {
    _result.blockHeader = blockHeader;
  }
  if (feeLimit != null) {
    _result.feeLimit = feeLimit;
  }
  if (transfer != null) {
    _result.transfer = transfer;
  }
  if (transferAsset != null) {
    _result.transferAsset = transferAsset;
  }
  if (freezeBalance != null) {
    _result.freezeBalance = freezeBalance;
  }
  if (unfreezeBalance != null) {
    _result.unfreezeBalance = unfreezeBalance;
  }
  if (unfreezeAsset != null) {
    _result.unfreezeAsset = unfreezeAsset;
  }
  if (withdrawBalance != null) {
    _result.withdrawBalance = withdrawBalance;
  }
  if (voteAsset != null) {
    _result.voteAsset = voteAsset;
  }
  if (voteWitness != null) {
    _result.voteWitness = voteWitness;
  }
  if (triggerSmartContract != null) {
    _result.triggerSmartContract = triggerSmartContract;
  }
  if (transferTrc20Contract != null) {
    _result.transferTrc20Contract = transferTrc20Contract;
  }
  return _result;
}