onlySetIfAbsentUserGender static method
Set the gender of the user to the user profile only if absent.
Implementation
static Future<void> onlySetIfAbsentUserGender(final UserGender userGender) async {
String userGenderStr;
switch (userGender) {
case UserGender.male:
userGenderStr = 'Male';
break;
case UserGender.female:
userGenderStr = 'Female';
break;
case UserGender.other:
userGenderStr = 'Other';
break;
}
await _invokeMethod('onlySetIfAbsentUserGender', userGenderStr);
}