startsWithLower method

bool startsWithLower()

should not start with "_".

Implementation

bool startsWithLower() {
  check(isNotEmpty && trim() == this && !contains(' '));
  final first = substring(0, 1);
  check(first != '_');
  final lowerFirst = first.toLowerCase();
  return first == lowerFirst;
}