checkIfUserFollowsGroup function Null safety

Future<bool> checkIfUserFollowsGroup(
  1. String token,
  2. String groupId
)

Implementation

Future<bool> checkIfUserFollowsGroup(String token, String groupId) async {
  var response = await checkIfUserFollowsUserResponse(token, groupId);
  if (response.statusCode == 200) {
    return true;
  } else {
    return false;
  }
}