Fix avoid_redundant_argument_values analyzer warnings enabled in the latest Dart SDK (#103734)

See https://github.com/flutter/flutter/pull/103719
This commit is contained in:
Jason Simmons
2022-05-13 12:57:59 -07:00
committed by GitHub
parent 708c363920
commit 275fb0286c
12 changed files with 7 additions and 22 deletions

View File

@@ -93,7 +93,7 @@ void main() {
PluginEventChannel<String>('test3');
final StreamController<String> controller = StreamController<String>(
onListen: expectAsync0<void>(() {}, count: 1));
onListen: expectAsync0<void>(() {}));
sendingChannel.setController(controller);
expect(listeningChannel.receiveBroadcastStream(),
@@ -109,7 +109,7 @@ void main() {
PluginEventChannel<String>('test3');
final StreamController<String> controller = StreamController<String>(
onListen: expectAsync0<void>(() {}, count: 1));
onListen: expectAsync0<void>(() {}));
sendingChannel.setController(controller);
expect(listeningChannel.receiveBroadcastStream(),