socialConnections method

  1. @override
Future<UserSocialConnections?> socialConnections()
override

Implementation

@override
Future<UserSocialConnections?> socialConnections() async {
  try {
    final String? socialConnectionsJson =
        await methodChannel.invokeMethod<String>('socialConnections');
    if (socialConnectionsJson == null) {
      return null;
    }
    return UserSocialConnections.fromJson(socialConnectionsJson);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}