stats method

  1. @override
void stats(
  1. String name,
  2. int value
)
inherited

Calculates min/average/max statistics based on the current and previous values.

  • name a counter name of Statistics type
  • value a value to update statistics

Implementation

@override
void stats(String name, int value) {
  var counter = get(name, CounterType.Statistics);
  _calculateStats(counter, value);
  _update();
}