From ff88b627d7e52ed4d148e7283264d8c9fc9dda11 Mon Sep 17 00:00:00 2001 From: Greg Littlefield Date: Thu, 10 Oct 2024 13:27:54 -0700 Subject: [PATCH] Fix Dart-2-specific import --- lib/src/util/prop_conversion.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/util/prop_conversion.dart b/lib/src/util/prop_conversion.dart index 1499ea2f3..effe74e17 100644 --- a/lib/src/util/prop_conversion.dart +++ b/lib/src/util/prop_conversion.dart @@ -1,3 +1,6 @@ +// This is only an unnecessary import in Dart 3; in Dart 2, we need it for allowInterop. +// ignore: unnecessary_import +import 'package:js/js.dart'; import 'package:js/js_util.dart'; import 'package:meta/meta.dart'; import 'package:over_react/over_react.dart' show Context, Ref;