toLowerCamelCase function

String toLowerCamelCase(
  1. String s
)

Implementation

String toLowerCamelCase(String s) {
  if (s.length < 2) return s.toLowerCase();
  return s[0].toLowerCase() + s.substring(1);
}