isDigit method
Check text contains only digit
Implementation
bool isDigit() {
if (!this.isNotNullEmpty()) {
return false;
}
return RegExp(kOnlyDigitPtrn).hasMatch(this!);
}
Check text contains only digit
bool isDigit() {
if (!this.isNotNullEmpty()) {
return false;
}
return RegExp(kOnlyDigitPtrn).hasMatch(this!);
}