isAlphanumeric property

bool get isAlphanumeric

Whether this string contains only letters and digits.

Implementation

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