isNumericOnly static method

bool isNumericOnly(
  1. String s
)

检查字符串是否只包含数字 只有数值不接受double数据类型的

Implementation

static bool isNumericOnly(String s) =>
    RegexUtils.hasMatch(s, RegexConstants.numericOnly);