addStat function

dynamic addStat(
  1. String source,
  2. int count, {
  3. bool cache = false,
})

Implementation

addStat(String source, int count, {bool cache = false}){
  if (!statShow)
    return;
  _stat.add(Stat(source, count, cache));
  if (cache)
    _allCountCache += count;
  else
    _serverCount += count;

  _debugStat();
}