hasNum static method

bool hasNum(
  1. String str
)

【含有数字】true Contains numbers true

Implementation

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