You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Presumably at some point we will want to deprecate and remove defaultValue from the TypeSafeStream API as well. Presumably we will need a major version bump when we remove it, since it's an API breaking change.
TypeSafeStream isn't a public type—it's used behind-the-scenes by DelegatingStream.typed() to create a casting wrapper for a given stream. But now that Stream.cast() and friends exist, there's no need for typed() at all, in DelegatingStream or anywhere else in async. Probably the best thing to do is:
Delete all the TypeSafe* wrappers.
Update the static typed() methods to just call cast() on their arguments.
Mark them as deprecated and suggest users use cast() directly.
Bump the SDK constraint to whatever version first contained cast().
The current transitional state of
lastWhere
andfirstWhere
from lib/src/typed/stream.dart looks like this:We are deprecating (and will soon remove) the
defaultValue
argument. So at a minimum this code needs to be updated to:Presumably at some point we will want to deprecate and remove
defaultValue
from theTypeSafeStream
API as well. Presumably we will need a major version bump when we remove it, since it's an API breaking change.@nex3 would you prefer that I do this:
The text was updated successfully, but these errors were encountered: