From f53ad8560941b3ecb8b98254111158a35a0c0468 Mon Sep 17 00:00:00 2001 From: "Lasse R.H. Nielsen" Date: Mon, 13 Mar 2023 13:43:04 +0100 Subject: [PATCH] Change `extends Iterator` to using `implements` (flutter/engine#40175) The Dart 3.0 libraries will mark Iterator with the interface class modifier, which prevents extends. It will do so because the class has no implementation to inherit, and is only intended as an interface, which it is now possible to express. This should unblock relanding https://dart-review.googlesource.com/c/sdk/+/287760 (Also working on disabling the class-modifiers experiment for Flutter dart: libraries, which was enabled along with the Dart SDK libraries, until the experiment can be intentionally turned back on.) --- engine/src/flutter/lib/web_ui/lib/src/engine/dom.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/lib/web_ui/lib/src/engine/dom.dart b/engine/src/flutter/lib/web_ui/lib/src/engine/dom.dart index 034899755f..01b9da8199 100644 --- a/engine/src/flutter/lib/web_ui/lib/src/engine/dom.dart +++ b/engine/src/flutter/lib/web_ui/lib/src/engine/dom.dart @@ -2053,7 +2053,7 @@ extension DomListExtension on _DomList { js_util.callMethod(this, 'item', [index.toDouble()]); } -class _DomListIterator extends Iterator { +class _DomListIterator implements Iterator { _DomListIterator(this.list); final _DomList list; @@ -2101,7 +2101,7 @@ extension DomTouchListExtension on _DomTouchList { js_util.callMethod(this, 'item', [index.toDouble()]); } -class _DomTouchListIterator extends Iterator { +class _DomTouchListIterator implements Iterator { _DomTouchListIterator(this.list); final _DomTouchList list;