toCamelCase static method

String toCamelCase(
  1. String? string, {
  2. bool lower = false,
})

Returns string in the form "UpperCamelCase" or "lowerCamelCase".

If string is null then returns an empty String. If lower is true, then the first character will be lower case.

Example:

     print(camelize("dart_vm"));
     => DartVm

Implementation

static String toCamelCase(String? string, {bool lower = false}) =>
    Style.toCamelCase(string, lower: lower);