selfprivacy.org.app/lib/utils/extensions/string_extensions.dart

5 lines
128 B
Dart
Raw Normal View History

extension StringExtension on String {
String capitalize() =>
'${this[0].toUpperCase()}${substring(1).toLowerCase()}';
}