Unverified Commit 8b3aabd6 authored by Brandon DeRosier's avatar Brandon DeRosier Committed by GitHub

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: 's avatarengine-flutter-autoroll <engine-flutter-autoroll@skia.org>
parent 638a5810
4446e3edda6a3ef9dd34afcabb5ebff0747d5f93 a1dd504059925c9925ad9d36f0cf67ad8ea62eb0
...@@ -112,7 +112,7 @@ class TextSelectionPoint { ...@@ -112,7 +112,7 @@ class TextSelectionPoint {
/// the [VerticalCaretMovementRun] must not be used. The [isValid] property must /// the [VerticalCaretMovementRun] must not be used. The [isValid] property must
/// be checked before calling [movePrevious] and [moveNext], or accessing /// be checked before calling [movePrevious] and [moveNext], or accessing
/// [current]. /// [current].
class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> { class VerticalCaretMovementRun extends Iterator<TextPosition> {
VerticalCaretMovementRun._( VerticalCaretMovementRun._(
this._editable, this._editable,
this._lineMetrics, this._lineMetrics,
...@@ -186,7 +186,9 @@ class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> { ...@@ -186,7 +186,9 @@ class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> {
return true; return true;
} }
@override /// Move back to the previous element.
///
/// Returns true and updates [current] if successful.
bool movePrevious() { bool movePrevious() {
assert(isValid); assert(isValid);
if (_currentLine <= 0) { if (_currentLine <= 0) {
......
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