feat: order type
This commit is contained in:
@@ -15,4 +15,12 @@ extension StringExt on String {
|
||||
decimalDigits: 0,
|
||||
).format(parsedValue);
|
||||
}
|
||||
|
||||
String toTitleCase() {
|
||||
if (isEmpty) return '';
|
||||
return split(' ').map((word) {
|
||||
if (word.isEmpty) return '';
|
||||
return word[0].toUpperCase() + word.substring(1).toLowerCase();
|
||||
}).join(' ');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user