forked from eatvio/eatvio_app
15 lines
313 B
Dart
15 lines
313 B
Dart
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;
|
|
}
|
|
}
|