Skip to content

Commit 6eb6786

Browse files
committed
review2
1 parent 3d3f0e2 commit 6eb6786

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

packages/flutter/lib/src/semantics/binding.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)