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

89 views
Skip to first unread message

Srujan Gaddam

unread,
Jun 14, 2024, 5:45:43 PM6/14/24
`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 PM6/27/24
Reply all
Reply to author
Forward
0 new messages