toCamelCase method
this extension method will apply on String it will return a CamelCase from a given text
Implementation
String toCamelCase() {
final camelCase = StringBuffer();
split('_').forEach((namePart) => camelCase.write(
'${namePart.trim()[0].toUpperCase()}${namePart.trim().substring(1)}'
.trim()));
return camelCase.toString();
}