toCamelCase method

String toCamelCase()

Implementation

String toCamelCase() => replaceAllMapped(
        RegExp(r'(?<=[a-z])[A-Z]'), (Match m) => ('_${m.group(0)!}'))
    .toLowerCase();