isValidDartClassName function

bool isValidDartClassName(
  1. String text
)

Implementation

bool isValidDartClassName(String text) {
  final validClassNameRegExp = RegExp(r'^[A-Z][A-Za-z0-9]*$');
  final snakeText = snakeToPascalCase(text);
  return validClassNameRegExp.hasMatch(snakeText);
}