setUserGender static method
Set the gender of the user to the user profile.
Implementation
static Future<void> setUserGender(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('setUserGender', userGenderStr);
}