isAlphabetic property

bool get isAlphabetic

Checks if the string contains only alphabetic characters.

Implementation

bool get isAlphabetic => RegExp(r'^[a-zA-Z]+$').hasMatch(this);