[breaking change] Null safety changes #40686
Labels
area-meta
Cross-cutting, high-level issues (for tracking many other implementation issues, ...).
breaking-change-request
This tracks requests for feedback on breaking changes
NNBD
Issues related to NNBD Release
Milestone
This is a meta-issue summarizing breaking changes made as part of realizing the null safety feature.
We are planning on landing these breaking changes fairly soon, and this in advance of the full null safety feature to ensure that we have sufficient time to uncover any unanticipated consequences.
Language
Core libraries
dart:core
RuneIterator.current
and.rawIndex
no longer returnsnull
. #40674: TheRuneIterator
class has some members which returnnull
in the state where the iterator has no "current" element; they will now return -1 or an empty stringString.fromEnvironment
andint.fromEnvironment
const constructors will have a non-null
defaultValue
default value.TypeError
not extendAssertionError
#40317: We will make the platform TypeError class not extend/implement the AssertionError class.That will also make it not inherit the message getter.
dart:async
:runZoned
method will now not catch synchronously thrown errors even when given an error handler.StreamSubscription.cancel
method's return type is changed toFuture<void>
.null
. #40130: We will replace a null stack trace supplied by users with a default stack trace.dart:io
:The text was updated successfully, but these errors were encountered: