onlyAlpha method

bool onlyAlpha(
  1. String str
)

Check string only alpha.

Implementation

bool onlyAlpha(String str) {
  RegExp reg = RegExp(_Regex().onlyAlpha);

  return reg.hasMatch(str);
}