-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Prefer void to null #22977
Prefer void to null #22977
Conversation
0dc0f38
to
131938a
Compare
@@ -625,7 +625,7 @@ class FakeMatcher extends AsyncMatcher { | |||
|
|||
@override | |||
Future<String> matchAsync(dynamic object) { | |||
return completer.future.then<String>((void _) { | |||
return completer.future.then<String>((_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should be void value
deferFirstFrameReport(); | ||
if (renderViewElement != null) | ||
buildOwner.reassemble(renderViewElement); | ||
return super.performReassemble().then((Null value) { | ||
return super.performReassemble().then((void _) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value
@@ -332,7 +332,7 @@ class AnimatedListState extends State<AnimatedList> with TickerProviderStateMixi | |||
..sort(); | |||
}); | |||
|
|||
controller.reverse().then<void>((Null value) { | |||
controller.reverse().then<void>((_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value here and above
@@ -1192,7 +1192,7 @@ class ScaffoldState extends State<Scaffold> with TickerProviderStateMixin { | |||
_snackBarController.value = 0.0; | |||
completer.complete(reason); | |||
} else { | |||
_snackBarController.reverse().then<void>((Null _) { | |||
_snackBarController.reverse().then<void>((_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value
@@ -301,7 +301,7 @@ class _ReorderableListContentState extends State<_ReorderableListContent> with T | |||
scrollOffset < bottomOffset ? bottomOffset : topOffset, | |||
duration: _scrollAnimationDuration, | |||
curve: Curves.easeInOut, | |||
).then((Null none) { | |||
).then((void none) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value
@@ -328,7 +328,7 @@ class RefreshIndicatorState extends State<RefreshIndicator> with TickerProviderS | |||
_mode = _RefreshIndicatorMode.snap; | |||
_positionController | |||
.animateTo(1.0 / _kDragSizeFactorLimit, duration: _kIndicatorSnapDuration) | |||
.then<void>((Null value) { | |||
.then<void>((_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value
? _animationController.animateTo(1.0, duration: kFadeOutDuration) | ||
: _animationController.animateTo(0.0, duration: kFadeInDuration); | ||
ticker.then<void>((Null value) { | ||
ticker.then<void>((_) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
void value
131938a
to
6cdda40
Compare
Where can I find the changelog? Regarding |
6cdda40
to
a6ede97
Compare
a6ede97
to
5a84347
Compare
You can find the changelog in the wiki. Here's the direct link: https://github.com/flutter/flutter/wiki/Changelog |
@goderbauer thanks. @Hixie also pointed https://flutter.io/design-principles/#handling-breaking-changes |
@a14n - thanks for the contributions. |
@dnfield sorry I didn't notice it was red 👎 Should I revert this PR ? |
Actually I only have access to a small number of tasks in https://flutter-dashboard.appspot.com/build.html and I'm not able to see the cause when it's red. (small excuse: Circus was green when I merged this PR) |
No problem, I know it's confusing and sometimes the CI reporting isn't even up to date. I'd leave it for now. For future reference, even if Cirrus is green we want |
For instance my commit makes the task channels_integration_test_win red but I cannot see why.
Ack. Thanks for the information and sorry again for this too early merge |
Your commit didn't make channels_integration_test, it was a prior commit doing that. |
Ahh I take it back. It did make it red. Unfortunately, those logs are only available internally here. It was a timeout though, I'm going to rerun - don't think it's related to your code. |
Yup was just a flake, think we should be good now - thanks again! |
Thanks to you :) |
No description provided.