leave Team

fun leaveTeam(team: Team, onSuccess: () -> Unit)

Function to execute the request to leave from a team

Parameters

team

: the team from leave

onSuccess

: the action to execute if the request has been successful