maxValue method
Returns the largest value ever recorded for the specified span
.
Implementation
Future<int> maxValue(ActivitySpan span) async {
final map = await all(span);
return map.values.fold<int>(0, (max, e) => e > max ? e : max);
}
Returns the largest value ever recorded for the specified span
.
Future<int> maxValue(ActivitySpan span) async {
final map = await all(span);
return map.values.fold<int>(0, (max, e) => e > max ? e : max);
}