capitalizeFirstLowerRest property
String
get
capitalizeFirstLowerRest
Capitalizes the first letter of the string and lowers the rest. Example: "FLUTTER AND DART" => "Flutter and dart"
Implementation
String get capitalizeFirstLowerRest =>
isBlank ? this : '${this[0].toUpperCase()}${substring(1).toLowerCase()}';