nextNonDigit static method

int nextNonDigit(
  1. String value, [
  2. int start = 0
])

Implementation

static int nextNonDigit(String value, [int start = 0]) {
  var index = start;
  for (; index < value.length; index++) {
    final code = value.codeUnitAt(index);
    if (code < zeroCode || code > nineCode) {
      break;
    }
  }
  return index;
}