checkIfUserIsFollowing method

Future checkIfUserIsFollowing({
  1. required String userId,
  2. required String followerId,
})

Implementation

Future checkIfUserIsFollowing({required String userId, required String followerId}) async {
  // try {
  //   String apiUrl = ApiConstant.urlApiCheckIfUserIsFollowing;
  //   var data = FollowerViewModel(userName: userId, followerId: followerId).toJson();
  //   var response = await apiClient.postData( apiUrl: apiUrl, data: data, fName: 'checkIfUserIsFollowing');
  //   if (response.statusCode==HttpStatus.ok) {
  //     var data = json.decode(response.body);
  //     return TypeSafeConversion.nullSafeBool( data['isFollowing'] );
  //   }
  // } on SocketException {
  //   setConnectivity();
  // } catch (ex, trace) {
  //   logError(ex, trace: trace, position: 'checkIfUserIsFollowing');
  // }
  return false;
}