containsDigit method

bool containsDigit()

Check contain digit

Implementation

bool containsDigit() {
  if (!this.isNotNullEmpty()) {
    return false;
  }
  return RegExp(ConstVariable.kContainDigitPtrn).hasMatch(this!);
}