feat: order type

This commit is contained in:
efrilm
2025-08-02 16:12:13 +07:00
parent 7b64ca2bb3
commit 09a812d417
5 changed files with 141 additions and 38 deletions
+8
View File
@@ -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(' ');
}
}