didChangeAccessibilityFeatures method
Called when the system changes the set of currently active accessibility features.
Implementation
@protected
@override
@mustCallSuper
void didChangeAccessibilityFeatures() {
// A triggered system event
_hadSystemEvent = true;
///
/// This method exposes notifications from [Window.onAccessibilityFeaturesChanged].
/// No 'setState()' functions are allowed to fully function at this point.
_setStateAllowed = false;
/// No 'setState()' functions are allowed to fully function at this point.
for (final listener in _beforeList) {
listener.didChangeAccessibilityFeatures();
}
for (final con in _controllerList) {
con.didChangeAccessibilityFeatures();
}
for (final listener in _afterList) {
listener.didChangeAccessibilityFeatures();
}
_setStateAllowed = true;
if (_setStateRequested) {
_setStateRequested = false;
// Only the latest State is rebuilt
if (isEndState) {
/// Perform a 'rebuild' if requested.
setState(() {});
}
}
}