Breaking Change 56015: dart:js_interop's ExternalDartReference will no longer implement Object

84 views
Skip to first unread message

Srujan Gaddam

unread,
Jun 14, 2024, 5:45:43 PMJun 14
to anno...@dartlang.org
`ExternalDartReference` will no longer implement `Object` as it will now have a nullable representation type.

`ExternalDartReference` allows users to pass opaque references to Dart values through JavaScript. In order to avoid extra null-checks and downcasts, this type will now represent a generic Dart value that is a subtype of `Object?`, and therefore can't implement `Object`.

See https://github.com/dart-lang/sdk/issues/56015 for more details. If this breaking change poses a severe problem, please leave a comment on the issue.

Srujan Gaddam

unread,
Jun 27, 2024, 8:24:05 PMJun 27
to anno...@dartlang.org
Reply all
Reply to author
Forward
0 new messages