isAlphaNum top-level property

Matcher isAlphaNum
final

Asserts that a String is alphanumeric, but also lets it contain dashes or underscores.

Implementation

final Matcher isAlphaNum = predicate(
    (dynamic value) => value is String && _alphaNum.hasMatch(value),
    'alphanumeric');