isPascalCase property

bool get isPascalCase

Returns true if the string is a PascalCase string.

Implementation

bool get isPascalCase {
  if (contains('_')) return false;
  if (_startsWithUpperCaseRegExp.matchAsPrefix(this) == null) return false;
  return true;
}