total method

Future<int> total(
  1. ActivitySpan span
)

Returns the total sum of all recorded entries in the specified span.

Implementation

Future<int> total(ActivitySpan span) async {
  final list = await _getList(_data[span]!);
  return list.fold<int>(0, (sum, e) => sum + e);
}