Fix BidirectionalIterator deprecation warning and roll engine to a1dd50405992 (#106595)

* a1dd50405 Roll Dart SDK from 692562354d6d to 48e3f8edb811 (3 revisions) (flutter/engine#34282)

* Fix BidirectionalIterator deprecation warning

* Remove override for movePrevious

Co-authored-by: engine-flutter-autoroll <engine-flutter-autoroll@skia.org>
This commit is contained in:
Brandon DeRosier 2022-06-24 23:19:40 -07:00 committed by GitHub
parent 638a581046
commit 8b3aabd61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
4446e3edda6a3ef9dd34afcabb5ebff0747d5f93
a1dd504059925c9925ad9d36f0cf67ad8ea62eb0

View File

@ -112,7 +112,7 @@ class TextSelectionPoint {
/// the [VerticalCaretMovementRun] must not be used. The [isValid] property must
/// be checked before calling [movePrevious] and [moveNext], or accessing
/// [current].
class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> {
class VerticalCaretMovementRun extends Iterator<TextPosition> {
VerticalCaretMovementRun._(
this._editable,
this._lineMetrics,
@ -186,7 +186,9 @@ class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> {
return true;
}
@override
/// Move back to the previous element.
///
/// Returns true and updates [current] if successful.
bool movePrevious() {
assert(isValid);
if (_currentLine <= 0) {