capitalizeFirst method
Implementation
String capitalizeFirst() {
if (isEmpty) {
return this;
}
return '${this[0].toUpperCase()}${substring(1)}';
}
String capitalizeFirst() {
if (isEmpty) {
return this;
}
return '${this[0].toUpperCase()}${substring(1)}';
}