hasNumber method

bool hasNumber()

Implementation

bool hasNumber() {
  if (this == null) return false;
  if (this!.isEmpty) return false;
  return this!.contains(RegExp(r'[0-9]'));
}