didChangeAccessibilityFeatures method

  1. @protected
  2. @override
  3. @mustCallSuper
void didChangeAccessibilityFeatures()
inherited

Called when the system changes the set of currently active accessibility features.

Implementation

@protected
@override
@mustCallSuper
void didChangeAccessibilityFeatures() {
  ///
  /// This method exposes notifications from [Window.onAccessibilityFeaturesChanged].

  /// 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();
  }
  _rebuildAllowed = true;
  if (_rebuildRequested || _inTester) {
    _rebuildRequested = false;

    /// Perform a 'rebuild' if requested.
    refresh();
  }
}