isAlphaDash static method
Check field is only with alphabetic, dash or underscore
Implementation
static bool isAlphaDash(
Map<String, dynamic> data,
dynamic value,
String args,
) {
RegExp alphaDashRegex = RegExp(r'^[a-zA-Z-_]+$');
return alphaDashRegex.hasMatch(value.toString());
}