isAlpha property

bool get isAlpha

检查是否只包含字母

Implementation

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