incrementCounter method

void incrementCounter()

Implementation

void incrementCounter() {
  _counter = _counter! + 1;
  final dx = _random.nextInt(_blockCount);
  final dy = (_lastIndices[dx] - 1) % _blockCount;
  _lastIndices[dx] = dy;
  _indices.add(Offset(dx.toDouble(), dy.toDouble()));
}