isAlphabetOnly property

bool get isAlphabetOnly

Returns true if string contains only alphabet symbols

Implementation

bool get isAlphabetOnly =>
    !isEmptyOrNull ? RegExp(r'^[a-zA-Z]+$').hasMatch(this!) : false;