addListener method
Adds a listener to be notified when the state changes.
listener
is the callback function to be called when the state changes.
This method is protected and should be used by the framework, not directly by users.
Implementation
@override
@protected
void addListener(VoidCallback listener) {
super.addListener(listener);
}