isAlphanumeric property

bool get isAlphanumeric

检查是否只包含字母和数字

Implementation

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