toCamelCase function
Converts snake_case text to camelCase, e.g. user_profile becomes userProfile.
Implementation
String toCamelCase(String text) {
var words = text.split('_');
return words.first + words.skip(1).map((word) => word[0].toUpperCase() + word.substring(1)).join('');
}