name property Null safety

String name

Implementation

String get name {
  switch (this) {
    case Gender.male:
      return 'MALE';
    case Gender.female:
      return 'FEMALE';
    case Gender.unknown:
      return 'UNKNOWN';
  }
}