toLowercaseWithUnderscores property
String
get
toLowercaseWithUnderscores
Implementation
String get toLowercaseWithUnderscores{
String result = '';
for(int i = 0; i < length; i++){
if(this[i] == this[i].toUpperCase() && i != 0){
result += '_${this[i].toLowerCase()}';
} else {
result += this[i].toLowerCase();
}
}
return result;
}