toCamelCase static method

String toCamelCase(
  1. String raw
)

Converts raw into a Dart-friendly camelCase identifier.

This method normalizes through toPascalCase, so it has the same validation behavior.

Implementation

static String toCamelCase(String raw) {
  final pascal = toPascalCase(raw);
  return pascal[0].toLowerCase() + pascal.substring(1);
}