accountTypeFromString method
Implementation
AndroidAccountType? accountTypeFromString(String? androidAccountType) {
if (androidAccountType == null) {
return null;
}
if (androidAccountType.startsWith("com.google")) {
return AndroidAccountType.google;
} else if (androidAccountType.startsWith("com.whatsapp")) {
return AndroidAccountType.whatsapp;
} else if (androidAccountType.startsWith("com.facebook")) {
return AndroidAccountType.facebook;
}
/// Other account types are not supported on Android
/// such as Samsung, htc etc...
return AndroidAccountType.other;
}