hasNumber property

bool get hasNumber

Determines whether the string contains at least one number.

Implementation

bool get hasNumber => contains(RegExp(r'\d'));