I have a switch which should change state of the user between isOnline or not. this is a bool between true and false. I created a method with cupertino switch: