order type
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
part of 'extension.dart';
|
||||
|
||||
extension StringX on String {
|
||||
String toTitleCase() {
|
||||
if (isEmpty) return '';
|
||||
return split(' ')
|
||||
.map((word) {
|
||||
if (word.isEmpty) return '';
|
||||
return word[0].toUpperCase() + word.substring(1).toLowerCase();
|
||||
})
|
||||
.join(' ');
|
||||
}
|
||||
|
||||
TableStatusType toTableStatusType() {
|
||||
switch (this) {
|
||||
case 'available':
|
||||
|
||||
Reference in New Issue
Block a user