snakeToCamelCase method

String snakeToCamelCase(
  1. String snake
)

Converts snake_case string to CamelCase

Implementation

String snakeToCamelCase(String snake) => snake
    .split('_')
    .map((e) => e.substring(0, 1).toUpperCase() + e.substring(1))
    .join();