Unverified Commit 8c5d223b authored by Michael Goderbauer's avatar Michael Goderbauer Committed by GitHub

Revert "Workaround for exhaustivness bug in dart2js (#123242)" (#123727)

Revert "Workaround for exhaustivness bug in dart2js (#123242)"
parent 509e5c38
...@@ -444,9 +444,6 @@ abstract class FocusTraversalPolicy with Diagnosticable { ...@@ -444,9 +444,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
case TraversalEdgeBehavior.closedLoop: case TraversalEdgeBehavior.closedLoop:
_focusAndEnsureVisible(sortedNodes.first, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd); _focusAndEnsureVisible(sortedNodes.first, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd);
return true; return true;
// TODO(goderbauer): Remove this hack once exhaustiveness bug is fixed, https://github.com/flutter/flutter/issues/123243.
default: // ignore: no_default_cases
throw UnsupportedError('unreachable');
} }
} }
if (!forward && focusedChild == sortedNodes.first) { if (!forward && focusedChild == sortedNodes.first) {
...@@ -457,9 +454,6 @@ abstract class FocusTraversalPolicy with Diagnosticable { ...@@ -457,9 +454,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
case TraversalEdgeBehavior.closedLoop: case TraversalEdgeBehavior.closedLoop:
_focusAndEnsureVisible(sortedNodes.last, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtStart); _focusAndEnsureVisible(sortedNodes.last, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtStart);
return true; return true;
// TODO(goderbauer): Remove this hack once exhaustiveness bug is fixed, https://github.com/flutter/flutter/issues/123243.
default: // ignore: no_default_cases
throw UnsupportedError('unreachable');
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment