genderLogic<T> static method
Internal: Implements the logic for gender selection - use gender for normal messages.
Implementation
static T genderLogic<T>(String targetGender,
{T? female, T? male, required T other, String? locale}) {
ArgumentError.checkNotNull(other, 'other');
switch (targetGender) {
case 'female':
return female ?? other;
case 'male':
return male ?? other;
default:
return other;
}
}