getGenderOptions method

dynamic getGenderOptions(
  1. IndividualModel? individual
)

Implementation

getGenderOptions(IndividualModel? individual) {
  final options = RegistrationDeliverySingleton().genderOptions;

  return options?.map((e) => e).firstWhereOrNull(
        (element) => element.toLowerCase() == individual?.gender?.name,
      );
}