visible property
A getter method that returns the value of the _visible variable.
Implementation
bool get visible => _visible;
A setter method that sets the value of the _visible variable and then calls notifyListeners() to notify the listeners that the value has changed.
Implementation
set visible(bool value) {
_visible = value;
if (!_finalState && value) {
_finalState = true;
}
notifyListeners();
}