isPascalCase method

bool isPascalCase(
  1. String str
)

Implementation

bool isPascalCase(String str) {
  return RegExp(r'^[A-Z][a-z0-9]+(?:[A-Z][a-z0-9]+)*$').hasMatch(str);
}