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