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