toLowerStart method

String toLowerStart()

should not start with "_".

Implementation

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