capitalizeFirstLetter property
String
get
capitalizeFirstLetter
Capitalizes only the first letter of the string, preserving the rest of the case. Example: "flutter AND DART" => "Flutter AND DART"
Implementation
String get capitalizeFirstLetter =>
isBlank ? this : '${this[0].toUpperCase()}${substring(1)}';