Prefer void to null (#22977)
* Future<void> main * Future<void>.delayed * prefer_void_to_Null * address review comments
This commit is contained in:
committed by
GitHub
parent
5efe095895
commit
0fb84e96c7
@@ -24,7 +24,7 @@ void main() {
|
||||
|
||||
testWidgets('returns immediately when transient callback queue is empty', (WidgetTester tester) async {
|
||||
extension.call(WaitUntilNoTransientCallbacks().serialize())
|
||||
.then<Null>(expectAsync1((Map<String, dynamic> r) {
|
||||
.then<void>(expectAsync1((Map<String, dynamic> r) {
|
||||
result = r;
|
||||
}));
|
||||
|
||||
@@ -44,7 +44,7 @@ void main() {
|
||||
});
|
||||
|
||||
extension.call(WaitUntilNoTransientCallbacks().serialize())
|
||||
.then<Null>(expectAsync1((Map<String, dynamic> r) {
|
||||
.then<void>(expectAsync1((Map<String, dynamic> r) {
|
||||
result = r;
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user