capitalize method
Capitalizes the first letter of the string
Implementation
String capitalize() => isEmpty ? this : this[0].toUpperCase() + substring(1);
Capitalizes the first letter of the string
String capitalize() => isEmpty ? this : this[0].toUpperCase() + substring(1);