File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
packages/flutter/lib/src/semantics Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ mixin SemanticsBinding on BindingBase {
2121 platformDispatcher
2222 ..onSemanticsEnabledChanged = _handleSemanticsEnabledChanged
2323 ..onSemanticsAction = _handleSemanticsAction
24- ..onAccessibilityFeaturesChanged = _handleAccessibilityFeaturesChanged ;
24+ ..onAccessibilityFeaturesChanged = handleAccessibilityFeaturesChanged ;
2525 _handleSemanticsEnabledChanged ();
2626 }
2727
@@ -129,11 +129,6 @@ mixin SemanticsBinding on BindingBase {
129129 @protected
130130 void performSemanticsAction (SemanticsActionEvent action);
131131
132- void _handleAccessibilityFeaturesChanged () {
133- _accessibilityFeatures = platformDispatcher.accessibilityFeatures;
134- handleAccessibilityFeaturesChanged ();
135- }
136-
137132 /// The currently active set of [AccessibilityFeatures] .
138133 ///
139134 /// This is set when the binding is first initialized and updated whenever a
@@ -149,8 +144,9 @@ mixin SemanticsBinding on BindingBase {
149144 ///
150145 /// See [dart:ui.PlatformDispatcher.onAccessibilityFeaturesChanged] .
151146 @protected
147+ @mustCallSuper
152148 void handleAccessibilityFeaturesChanged () {
153- // Nothing to do by default.
149+ _accessibilityFeatures = platformDispatcher.accessibilityFeatures;
154150 }
155151
156152 /// Creates an empty semantics update builder.
You can’t perform that action at this time.
0 commit comments