Transaction constructor
Transaction({
- int? type,
- int? timestamp,
- String? remark,
- List<
int> ? txData, - TransactionCoinFrom? input,
- TransactionCoinTo? output,
- Signature? txSigs,
- int? hash,
Implementation
factory Transaction({
$core.int? type,
$core.int? timestamp,
$core.String? remark,
$core.List<$core.int>? txData,
TransactionCoinFrom? input,
TransactionCoinTo? output,
Signature? txSigs,
$core.int? hash,
}) {
final _result = create();
if (type != null) {
_result.type = type;
}
if (timestamp != null) {
_result.timestamp = timestamp;
}
if (remark != null) {
_result.remark = remark;
}
if (txData != null) {
_result.txData = txData;
}
if (input != null) {
_result.input = input;
}
if (output != null) {
_result.output = output;
}
if (txSigs != null) {
_result.txSigs = txSigs;
}
if (hash != null) {
_result.hash = hash;
}
return _result;
}