toCapitalized method
Only capitalize first letter of this string
Implementation
String toCapitalized() =>
isNotEmpty ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';
Only capitalize first letter of this string
String toCapitalized() =>
isNotEmpty ? '${this[0].toUpperCase()}${substring(1).toLowerCase()}' : '';