addSemanticsEnabledListener method
- VoidCallback listener
Adds a listener
to be called when semanticsEnabled changes.
See also:
- removeSemanticsEnabledListener to remove the listener again.
- ValueNotifier.addListener, which documents how and when listeners are called.
Implementation
void addSemanticsEnabledListener(VoidCallback listener) {
_semanticsEnabled.addListener(listener);
}