isAlphabetic property

bool get isAlphabetic

Check if string contains only letters

Implementation

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