changeCasing method
Implementation
String changeCasing({String casing = 'none'}) {
String textUsed = this;
switch (casing.toUpperCase()) {
case 'NONE':
textUsed = this;
break;
case 'UPPERCASE':
textUsed = this.toUpperCase();
break;
case 'LOWERCASE':
textUsed = this.toLowerCase();
break;
case 'TITLECASE':
textUsed = this.toCapitalizeWords();
break;
default:
textUsed = this;
break;
}
return textUsed;
}