capitalize method
Implementation
String capitalize() => isEmpty
? ""
: length == 1
? this[0].toUpperCase()
: "${this[0].toUpperCase()}${substring(1)}";
String capitalize() => isEmpty
? ""
: length == 1
? this[0].toUpperCase()
: "${this[0].toUpperCase()}${substring(1)}";