recordPaint static method

void recordPaint({
  1. required bool repainted,
  2. required CellRect? copiedBounds,
})

Implementation

static void recordPaint({
  required bool repainted,
  required CellRect? copiedBounds,
}) {
  if (!_enabled || _suppressDepth > 0) return;
  _boundaryCount += 1;
  if (repainted) {
    _repaintedCount += 1;
  } else {
    _cachedCount += 1;
  }
  if (copiedBounds == null) {
    _emptyCount += 1;
  } else {
    _copiedCellCount += copiedBounds.size.cols * copiedBounds.size.rows;
  }
}