TextToCamel method
Get Camel case notation version of provided string
Implementation
String TextToCamel(
String text,
) => run(
() => _debugLabels.TextToCamel(text),
() {
final words = rl.Utils.TextSplitWords(text);
if (words.isEmpty) return '';
final first = words.first.toLowerCase();
final rest = words.skip(1).map(
(w) => w.isEmpty ? w : w[0].toUpperCase() + w.substring(1).toLowerCase(),
);
return first + rest.join();
},
);