isAlpha property
bool
get
isAlpha
Whether this string contains only letters.
Implementation
bool get isAlpha => RegExp(r'^[a-zA-Z]+$').hasMatch(this);
Whether this string contains only letters.
bool get isAlpha => RegExp(r'^[a-zA-Z]+$').hasMatch(this);