whichProvider method
Implementation
String whichProvider() {
switch (provider) {
case SocialAuthProvider.google:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/google.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/google_filled.png';
case SocialAuthProvider.facebook:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/facebook.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/facebook_filled.png';
case SocialAuthProvider.apple:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/apple.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/apple_filled.png';
case SocialAuthProvider.twitter:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/twitter.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/twitter_filled.png';
case SocialAuthProvider.pinterest:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/pinterest.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/pinterest_filled.png';
case SocialAuthProvider.linkedin:
return outlinedLogo
? 'packages/intelligentsia_forms/assets/auth_imgs/linkedin.png'
: 'packages/intelligentsia_forms/assets/auth_imgs/linkedin_filled.png';
}
}