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