text field capitalize first letter flutter code example
Example 1: flutter capitalize first letter textfield
textCapitalization: TextCapitalization.sentences
Example 2: first letter capital flutter
extension CapExtension on String {
String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}';
String get allInCaps => this.toUpperCase();
String get capitalizeFirstofEach => this.split(" ").map((str) => str.capitalize).join(" ");
}