isNumericOnly static method

bool isNumericOnly(
  1. String s
)

字符串中是否只包含数字

Implementation

static bool isNumericOnly(String s) => hasMatch(s, r'^\d+$');