getGenderCategory<T> method
Determines the gender category of this string (e.g., 'female', 'male', or 'other')
based on the current locale, using Intl.genderLogic.
Arguments:
other: A default value to return if none of the specific gender values match.female,male: Values to return for specific genders (optional).locale: The specific locale to use for gender determination (optional).
Implementation
T getGenderCategory<T>({
required T other,
T? female,
T? male,
String? locale,
}) =>
Intl.genderLogic(
this,
female: female,
male: male,
other: other,
locale: locale,
);