isAlphabetOnly static method

bool isAlphabetOnly(
  1. String s
)

字符串中是否只包含字母

Implementation

static bool isAlphabetOnly(String s) => hasMatch(s, r'^[a-zA-Z]+$');