In Flutter, it tends to be done effectively utilizing Visibility a widget. The widget you need to show or hide must be the child of Visibility widget. In the constructor, pass visibility alternative whose value is a boolean and is put away as the state. Then, at that point, update the value to show or hide the child .
Read moreCan you put a condition in an else statement?
You can add as many conditions as you want to your conditional statement by using else if , but it’s really important to pay attention to the order in which the app checks the conditions.
Read moreHow do you write if else condition in flutter?
Ways to Use If Else Statement in Flutter Widget
Read more