value property

int value

Implementation

int get value {
  switch (this) {
    case Gender.female:
      return 0;
    case Gender.male:
      return 1;
  }
}