forked from Cutlery/immich
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			214 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			214 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| extension StringExtension on String {
 | |
|   String capitalize() {
 | |
|     return split(" ")
 | |
|         .map(
 | |
|           (str) => str.isEmpty ? str : str[0].toUpperCase() + str.substring(1),
 | |
|         )
 | |
|         .join(" ");
 | |
|   }
 | |
| }
 |