Datum constructor
Datum({
- bool multiDatum = false,
Create a datum.
If multiDatum
is true, then multiple Datum objects are stored in a
list with the same id and header.
Implementation
Datum({bool multiDatum = false}) : super() {
timestamp = DateTime.now().toUtc();
// only add an id to single datums - not to each multi-datum
id = (!multiDatum) ? Uuid().v1() : null;
}