TransactionModel constructor Null safety
- {Uint8List? id,
- int version = 1,
- required Uint8List address,
- required Uint8List contents,
- String assetRef = "AA==",
- DateTime? timestamp,
- Uint8List? merkelProof,
- BlockModel? block,
- Uint8List? signature}
Builds a new TransactionModel
If no timestamp
is provided, the object creation time is used.
If no assetRef is provided, it uses AA== as assetRef value.
Implementation
TransactionModel(
{this.id,
this.version = 1,
required this.address,
required this.contents,
this.assetRef = "AA==",
DateTime? timestamp,
this.merkelProof,
this.block,
this.signature})
: timestamp = timestamp ?? DateTime.now();