Skip to content

Commit b212e7b

Browse files
authored
implement Iterator and Comparable instead of extending them (#123282)
implement Iterator and Comparable instead of extending them
1 parent 5a36bdd commit b212e7b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dev/integration_tests/flutter_gallery/lib/demo/transformations/transformations_demo_board.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class Board extends IterableMixin<BoardPoint?> {
200200
}
201201
}
202202

203-
class _BoardIterator extends Iterator<BoardPoint?> {
203+
class _BoardIterator implements Iterator<BoardPoint?> {
204204
_BoardIterator(this.boardPoints);
205205

206206
final List<BoardPoint> boardPoints;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class TextSelectionPoint {
131131
/// the [VerticalCaretMovementRun] must not be used. The [isValid] property must
132132
/// be checked before calling [movePrevious], [moveNext] and [moveByOffset],
133133
/// or accessing [current].
134-
class VerticalCaretMovementRun extends Iterator<TextPosition> {
134+
class VerticalCaretMovementRun implements Iterator<TextPosition> {
135135
VerticalCaretMovementRun._(
136136
this._editable,
137137
this._lineMetrics,

packages/flutter/lib/src/semantics/semantics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2875,7 +2875,7 @@ class _BoxEdge implements Comparable<_BoxEdge> {
28752875
/// nodes that share the same [SemanticsNode] parent.
28762876
///
28772877
/// The [nodes] are sorted among each other separately from other nodes.
2878-
class _SemanticsSortGroup extends Comparable<_SemanticsSortGroup> {
2878+
class _SemanticsSortGroup implements Comparable<_SemanticsSortGroup> {
28792879
_SemanticsSortGroup({
28802880
required this.startOffset,
28812881
required this.textDirection,

0 commit comments

Comments
 (0)