latestValueOf method
Implementation
num? latestValueOf() {
final points = (sum?.dataPoints ?? gauge?.dataPoints);
if (points == null || points.isEmpty) return null;
points.sort((a, b) => b.timeUnixNano.compareTo(a.timeUnixNano));
return points.first.value;
}