forked from eatvio/eatvio_app
user details created
This commit is contained in:
@@ -2,4 +2,13 @@ extension Capitalization on String {
|
||||
String capitalize() {
|
||||
return "${this[0].toUpperCase()}${substring(1).toLowerCase()}";
|
||||
}
|
||||
}
|
||||
|
||||
String parseGender() {
|
||||
if (this == 'male') {
|
||||
return 'Мужской';
|
||||
} else if (this == 'female') {
|
||||
return 'Женский';
|
||||
}
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user