alphabeticRegex top-level property
Regex to check a string contains only letters Note that spaces are counted as alphabetic
For example:
alphabeticRegex.hasMatch('Lumberjack')->truealphabeticRegex.hasMatch('I want to swim')->truealphabeticRegex.hasMatch('Food123')->false
Implementation
final alphabeticRegex = RegExp(r'^[\w ]+$');