isLetter property

bool get isLetter

Returns true if the string is a letter.

Implementation

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