bool containsOnlyCharacters(String text) { RegExp regex = RegExp(r'^[a-zA-Z]+$'); return regex.hasMatch(text); }