camelCase function

String camelCase(
  1. String string
)

Converts string to camel case.

Implementation

String camelCase(String string) {
  return string.split('_').map((s) => s.toLowerCase()).join('');
}