Ball valves for washing machine