Sitelet https://github.com/flutter/flutter/pull/193242
Skip to content

[flutter_test] Remove redundant null arguments in Completer.complete - #193242

Merged
auto-submit[bot] merged 1 commit into
flutter:masterfrom
kevmoo:redundant-null-flutter-test
Sep 24, 2026
Merged

auto-submit[bot] merged 1 commit into
flutter:masterfrom
kevmoo:redundant-null-flutter-test

Conversation

@kevmoo

@kevmoo kevmoo commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

This is work towards dart-lang/sdk#59150 (https://dart-review.googlesource.com/c/sdk/+/491341).

The avoid_redundant_argument_values lint rule is being updated to flag redundant null argument values passed to optional nullable parameters with no default value (such as Completer.complete([FutureOr<T>? value])).

Pre-launch Checklist

Prepares for flagging redundant null argument values in avoid_redundant_argument_values (https://dart-review.googlesource.com/c/sdk/+/491341).
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Sep 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the completion of Completer instances by replacing complete(null) with complete() in packages/flutter_test/lib/src/binding.dart and packages/flutter_test/test/widget_tester_test.dart. There are no review comments, and I have no feedback to provide.

@github-actions github-actions Bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Sep 23, 2026
@kevmoo
kevmoo requested a review from goderbauer September 23, 2026 23:19

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests CICD Run CI/CD framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants