static bool isValidClass(String classAttr) { return RegExp(r'^[a-zA-Z0-9_\-]{1,500}$', caseSensitive: false) .hasMatch(classAttr); }