isUserConnected method
- @Deprecated("Import vital_core and use the top-level `hasUserConnectedTo` instead.")
Future<bool>
isUserConnected(
- String provider
)
Implementation
@Deprecated(
"Import vital_core and use the top-level `hasUserConnectedTo` instead.")
Future<bool> isUserConnected(String provider) async {
ProviderSlug? providerSlug = ProviderSlug.fromString(provider);
if (providerSlug == null) {
throw Exception("unrecognized provider slug: $provider");
}
return await vital_core.hasUserConnectedTo(providerSlug);
}