isDigitIncluded static method

bool isDigitIncluded(
  1. String string
)

Implementation

static bool isDigitIncluded(String string) {
  for (int i = 0; i < string.length; i++) {
    if (string.codeUnitAt(i) >= 0 && string.codeUnitAt(i) <= 9) {
      return true;
    }
  }
  return false;
}