camelCase static method
Camelcase string Example: your name => yourName
Implementation
static String? camelCase(String value) {
if (isNullOrBlank(value)!) {
return null;
}
final separatedWords =
value.split(RegExp(r'[!@#<>?":`~;[\]\\|=+)(*&^%-\s_]+'));
var newString = '';
for (final word in separatedWords) {
//ignore: use_string_buffers
newString += word[0].toUpperCase() + word.substring(1).toLowerCase();
}
return newString[0].toLowerCase() + newString.substring(1);
}