Transaction constructor
Transaction({
- Int64? timestamp,
- Int64? expiration,
- BlockHeader? blockHeader,
- Int64? feeLimit,
- TransferContract? transfer,
- TransferAssetContract? transferAsset,
- FreezeBalanceContract? freezeBalance,
- UnfreezeBalanceContract? unfreezeBalance,
- UnfreezeAssetContract? unfreezeAsset,
- WithdrawBalanceContract? withdrawBalance,
- VoteAssetContract? voteAsset,
- VoteWitnessContract? voteWitness,
- TriggerSmartContract? triggerSmartContract,
- 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;
}