isUserConnected method

  1. @Deprecated("Import vital_core and use the top-level `hasUserConnectedTo` instead.")
Future<bool> isUserConnected(
  1. 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);
}