isAlphaDash top-level property

Matcher isAlphaDash
final

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

Implementation

final Matcher isAlphaDash = predicate(
    (dynamic value) => value is String && _alphaDash.hasMatch(value),
    'alphanumeric (dashes and underscores are allowed)');