Native web library APIs, like the ones in dart:html, will have their return values be null-asserted if they are non-nullable. We have compiler flags, "nativeNonNullAsserts" and "--native-null-assertions" in DDC and dart2js, respectively, to check this already. However, the default values of these flags were false. For Dart 3, the defaults will now be true.
For more information and details on how to turn this off if needed, see
https://github.com/dart-lang/sdk/issues/51799.
Please comment on the bug if you have any questions or concerns. Thanks!