Unverified Commit b212e7b3 authored by Jacob MacDonald's avatar Jacob MacDonald Committed by GitHub

implement Iterator and Comparable instead of extending them (#123282)

implement Iterator and Comparable instead of extending them
parent 5a36bddd
...@@ -200,7 +200,7 @@ class Board extends IterableMixin<BoardPoint?> { ...@@ -200,7 +200,7 @@ class Board extends IterableMixin<BoardPoint?> {
} }
} }
class _BoardIterator extends Iterator<BoardPoint?> { class _BoardIterator implements Iterator<BoardPoint?> {
_BoardIterator(this.boardPoints); _BoardIterator(this.boardPoints);
final List<BoardPoint> boardPoints; final List<BoardPoint> boardPoints;
......
...@@ -131,7 +131,7 @@ class TextSelectionPoint { ...@@ -131,7 +131,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], [moveNext] and [moveByOffset], /// be checked before calling [movePrevious], [moveNext] and [moveByOffset],
/// or accessing [current]. /// or accessing [current].
class VerticalCaretMovementRun extends Iterator<TextPosition> { class VerticalCaretMovementRun implements Iterator<TextPosition> {
VerticalCaretMovementRun._( VerticalCaretMovementRun._(
this._editable, this._editable,
this._lineMetrics, this._lineMetrics,
......
...@@ -2875,7 +2875,7 @@ class _BoxEdge implements Comparable<_BoxEdge> { ...@@ -2875,7 +2875,7 @@ class _BoxEdge implements Comparable<_BoxEdge> {
/// nodes that share the same [SemanticsNode] parent. /// nodes that share the same [SemanticsNode] parent.
/// ///
/// The [nodes] are sorted among each other separately from other nodes. /// The [nodes] are sorted among each other separately from other nodes.
class _SemanticsSortGroup extends Comparable<_SemanticsSortGroup> { class _SemanticsSortGroup implements Comparable<_SemanticsSortGroup> {
_SemanticsSortGroup({ _SemanticsSortGroup({
required this.startOffset, required this.startOffset,
required this.textDirection, required this.textDirection,
......
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