Skip to content

Commit 8b3aabd

Browse files
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 <[email protected]>
1 parent 638a581 commit 8b3aabd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

bin/internal/engine.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4446e3edda6a3ef9dd34afcabb5ebff0747d5f93
1+
a1dd504059925c9925ad9d36f0cf67ad8ea62eb0

packages/flutter/lib/src/rendering/editable.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class TextSelectionPoint {
112112
/// the [VerticalCaretMovementRun] must not be used. The [isValid] property must
113113
/// be checked before calling [movePrevious] and [moveNext], or accessing
114114
/// [current].
115-
class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> {
115+
class VerticalCaretMovementRun extends Iterator<TextPosition> {
116116
VerticalCaretMovementRun._(
117117
this._editable,
118118
this._lineMetrics,
@@ -186,7 +186,9 @@ class VerticalCaretMovementRun extends BidirectionalIterator<TextPosition> {
186186
return true;
187187
}
188188

189-
@override
189+
/// Move back to the previous element.
190+
///
191+
/// Returns true and updates [current] if successful.
190192
bool movePrevious() {
191193
assert(isValid);
192194
if (_currentLine <= 0) {

0 commit comments

Comments
 (0)