isAlphaDash top-level property
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)');