setSocialType method
Implementation
SocialType? setSocialType(String? type) {
switch (type) {
case 'github':
return SocialType.github;
case 'google':
return SocialType.google;
case 'microsoft':
return SocialType.microsoft;
case 'facebook':
return SocialType.facebook;
case 'gitlab':
return SocialType.gitlab;
case 'linkedin':
return SocialType.linkedin;
default:
return null;
}
}