documentID property
Uint8List
get
documentID
Generates the document ID
Implementation
Uint8List get documentID {
if (_documentID == null) {
final rnd = math.Random();
_documentID = Uint8List.fromList(sha256
.convert(DateTime.now().toIso8601String().codeUnits +
List<int>.generate(32, (_) => rnd.nextInt(256)))
.bytes);
}
return _documentID!;
}