mirror of
https://github.com/flutter/flutter
synced 2024-08-27 12:00:58 +00:00
Revert "Workaround for exhaustivness bug in dart2js (#123242)"
This commit is contained in:
parent
509e5c3832
commit
8c5d223bab
|
@ -444,9 +444,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
|
|||
case TraversalEdgeBehavior.closedLoop:
|
||||
_focusAndEnsureVisible(sortedNodes.first, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtEnd);
|
||||
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) {
|
||||
|
@ -457,9 +454,6 @@ abstract class FocusTraversalPolicy with Diagnosticable {
|
|||
case TraversalEdgeBehavior.closedLoop:
|
||||
_focusAndEnsureVisible(sortedNodes.last, alignmentPolicy: ScrollPositionAlignmentPolicy.keepVisibleAtStart);
|
||||
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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue