displayText property
String
get
displayText
Implementation
String get displayText {
switch (this) {
case male:
return 'Male';
case female:
return 'Female';
case nonBinary:
return 'Non-binary';
case preferNotToSay:
return 'Prefer not to say';
case other:
return 'Other';
}
}