Skip to content

Migrate to null-safety #520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 17, 2021
Merged

Migrate to null-safety #520

merged 3 commits into from
Mar 17, 2021

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Mar 16, 2021

Closes #493

@@ -26,7 +26,7 @@ Stream<String> normalizeGeneratorOutput(Object value) {
return e.trim();
}

throw _argError(e);
throw _argError(e as Object);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would just do a whereType<Object>() above instead of the explicit null check and cast.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whereType doesn't exist on Stream! That's what I did first!

CC @lrhn

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh it does in stream_transform I think, if we don't already depend on it though then this is fine.

@kevmoo
Copy link
Member Author

kevmoo commented Mar 17, 2021

PTAL @jakemac53

@kevmoo kevmoo merged commit 7dd9f88 into master Mar 17, 2021
@kevmoo kevmoo deleted the null_safety branch March 17, 2021 18:57
@LasseRosenow
Copy link

@kevmoo When can we expect a stable release with this change?

@kevmoo
Copy link
Member Author

kevmoo commented Mar 18, 2021 via email

mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
mosuem pushed a commit to dart-lang/build that referenced this pull request Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for nullsafety
3 participants