ucfirst method
Make first character uppercase. e.g hello -> Hello
Implementation
String ucfirst() => replaceFirstMapped(RegExp(r'^[a-z]'), (match) {
return match.group(0)!.toUpperCase();
});
Make first character uppercase. e.g hello -> Hello
String ucfirst() => replaceFirstMapped(RegExp(r'^[a-z]'), (match) {
return match.group(0)!.toUpperCase();
});