removeUserFromProject method

Future<Response> removeUserFromProject(
  1. String projectId,
  2. String userId
)

Remove a user from a project

Implementation

Future<Response> removeUserFromProject(String projectId, String userId) async {
  try {
    final response = await _dio.delete(
      '/projects/$projectId/users/$userId',
    );
    return response;
  } on DioException catch (e) {
    throw Exception('Failed to remove user from project: ${e.message}');
  }
}