save method

bool save(
  1. FpsInfo info
)

Implementation

bool save(FpsInfo info) {
  if (items.length >= maxCount) {
    totalNum -= items.removeFirst().totalSpan!;
  }
  items.add(info);
  totalNum += info.totalSpan!;
  max = info.totalSpan! > max! ? info.totalSpan : max;
  return true;
}