isDigit property
bool
isDigit
true if this is non-null, non-empty and consists of only digits: 0-9
Implementation
bool get isDigit => this != null && _digitPattern.hasMatch(this!);
true if this is non-null, non-empty and consists of only digits: 0-9
bool get isDigit => this != null && _digitPattern.hasMatch(this!);