stringToCamelCase static method

String stringToCamelCase(
  1. String str
)

Implementation

static String stringToCamelCase(String str) => str
    .split('_')
    .map((e) => '${e[0].toUpperCase()}${e.substring(1).toLowerCase()}')
    .join();