mirror of
https://github.com/Dr-Blank/Vaani.git
synced 2026-02-16 14:29:35 +00:00
6 lines
152 B
Dart
6 lines
152 B
Dart
extension StringExtension on String {
|
|
String get capitalize {
|
|
if (isEmpty) return "";
|
|
return "${this[0].toUpperCase()}${substring(1)}";
|
|
}
|
|
}
|