hasNum static method

bool hasNum(
  1. String str
)

【含有数字】true

Implementation

static bool hasNum(String str) {
  return RegExp(".*[0-9].*").hasMatch(str);
}