snakeToCamel method

String snakeToCamel()

Converts this string from snake-case to camel-case.

void foo() {
  print('abc_def'.snakeToCamel()); // 'abcDef'
  print('ABC_DEF'.snakeToCamel()); // 'abcDef'
  print('ABC'.snakeToCamel());     // 'abc'
  print('abc'.snakeToCamel());     // 'abc'
}

Implementation

String snakeToCamel() => snakeToPascal().decapitalize();