camelCase property
String
get
camelCase
camelCase
Implementation
String get camelCase {
final words = _splitToWords(_value);
return [words.first.toLowerCase(), ...words.skip(1).map(_capitalizeFirstLetter)].join();
}
set
camelCase
(String s)
Implementation
set camelCase(String s) {
final words = _splitToWords(s);
_value = words.map((word) => word.toLowerCase()).join('_');
}