isAlphabetOnly method

bool isAlphabetOnly()

Returns true if string contains only alphabet symbols

Implementation

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