now method Null safety
- String node
Constructs an initial HLC using the current wall clock.
Implementation
static HLC now(String node) {
return HLC(
timestamp: DateTime.now().millisecondsSinceEpoch,
count: 0,
node: node,
);
}
Constructs an initial HLC using the current wall clock.
static HLC now(String node) {
return HLC(
timestamp: DateTime.now().millisecondsSinceEpoch,
count: 0,
node: node,
);
}