diff --git a/packages/flutter/test/widgets/custom_painter_test.dart b/packages/flutter/test/widgets/custom_painter_test.dart index af16540128..c27317e1ca 100644 --- a/packages/flutter/test/widgets/custom_painter_test.dart +++ b/packages/flutter/test/widgets/custom_painter_test.dart @@ -355,7 +355,8 @@ void _defineTests() { )); final Set allActions = SemanticsAction.values.toSet() ..remove(SemanticsAction.customAction) // customAction is not user-exposed. - ..remove(SemanticsAction.showOnScreen); // showOnScreen is not user-exposed + ..remove(SemanticsAction.showOnScreen) // showOnScreen is not user-exposed + ..removeWhere((SemanticsAction action) => action.index == 1 << 23); const int expectedId = 2; final TestSemantics expectedSemantics = TestSemantics.root(