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(
    (value) => value is String && _alphaNum.hasMatch(value), 'alphanumeric')