Skip to content

Commit 8c5d223

Browse files
authored
Revert "Workaround for exhaustivness bug in dart2js (#123242)" (#123727)
Revert "Workaround for exhaustivness bug in dart2js (#123242)"
1 parent 509e5c3 commit 8c5d223

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/flutter/lib/src/widgets/focus_traversal.dart

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
444444
case TraversalEdgeBehavior.closedLoop:
445445
_focusAndEnsureVisible(sortedNodes.first, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd);
446446
return true;
447-
// TODO(goderbauer): Remove this hack once exhaustiveness bug is fixed, https://github.com/flutter/flutter/issues/123243.
448-
default: // ignore: no_default_cases
449-
throw UnsupportedError('unreachable');
450447
}
451448
}
452449
if (!forward && focusedChild == sortedNodes.first) {
@@ -457,9 +454,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
457454
case TraversalEdgeBehavior.closedLoop:
458455
_focusAndEnsureVisible(sortedNodes.last, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtStart);
459456
return true;
460-
// TODO(goderbauer): Remove this hack once exhaustiveness bug is fixed, https://github.com/flutter/flutter/issues/123243.
461-
default: // ignore: no_default_cases
462-
throw UnsupportedError('unreachable');
463457
}
464458
}
465459

0 commit comments

Comments
 (0)