hasNumber property
bool
get
hasNumber
Determines whether the string contains at least one number.
Implementation
bool get hasNumber => contains(RegExp(r'\d'));
Determines whether the string contains at least one number.
bool get hasNumber => contains(RegExp(r'\d'));