isAlphanumeric property

bool get isAlphanumeric

Returns true if this string contains only alphanumeric characters.

Implementation

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