setToCurrentTime method Null safety

void setToCurrentTime()

Set the value of the gauge with labels to the current time as a unix timestamp.

Implementation

void setToCurrentTime() {
  value = DateTime.now().millisecondsSinceEpoch.toDouble();
}