isAlphabet property

bool get isAlphabet

Checks if the string contains only alphabetic characters.

Implementation

bool get isAlphabet => regex(r'^[a-zA-Z]+$');