incrementCounter static method

void incrementCounter(
  1. Uint8List counter
)

Implementation

static void incrementCounter(Uint8List counter) {
  for (int i = counter.length - 1; i >= 0; i--) {
    counter[i]++;
    if (counter[i] != 0) {
      break;
    }
  }
}