flutter/packages/flutter_driver/lib/src/common
Greg Spencer 8cda3bea23
Remove 'must not be null' comments from various libraries. (#134984)
## Description

This removes all of the comments that are of the form "so-and-so (must not be null|can ?not be null|must be non-null)" from the cases where those values are defines as non-nullable values.

This PR removes them from the animation, cupertino, foundation, gestures, semantics, and services libraries.  Each of them only had a few, so I lumped them together.

This was done by hand, since it really didn't lend itself to scripting, so it needs to be more than just spot-checked, I think. I was careful to leave any comment that referred to parameters that were nullable, but I may have missed some.

In addition to being no longer relevant after null safety has been made the default, these comments were largely fragile, in that it was easy for them to get out of date, and not be accurate anymore anyhow.

This did create a number of constructor comments which basically say "Creates a [Foo].", but I don't really know how to avoid that in a large scale change, since there's not much you can really say in a lot of cases.  I think we might consider some leniency for constructors to the "Comment must be meaningful" style guidance (which we de facto have already, since there are a bunch of these).

## Related PRs
- https://github.com/flutter/flutter/pull/134991
- https://github.com/flutter/flutter/pull/134992
- https://github.com/flutter/flutter/pull/134993
- https://github.com/flutter/flutter/pull/134994

## Tests
 - Documentation only change.
2023-09-20 15:44:49 +00:00
..
deserialization_factory.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
diagnostics_tree.dart Remove unnecessary null checks in flutter_driver (#118864) 2023-01-20 22:02:49 +00:00
enum_util.dart Remove new keyword in a few files (#104438) 2022-06-06 16:08:06 -07:00
error.dart enable combinators_ordering (#107847) 2022-07-18 22:04:07 +00:00
find.dart Remove unnecessary null checks in flutter_driver (#118864) 2023-01-20 22:02:49 +00:00
frame_sync.dart Sync lints (#126316) 2023-05-11 13:27:51 +00:00
fuchsia_compat.dart replace some ._() constructors with class modifiers (#122765) 2023-03-23 12:29:18 -07:00
geometry.dart Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
gesture.dart Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
handler_factory.dart Stand-alone widget tree with multiple render trees to enable multi-view rendering (#125003) 2023-07-17 16:14:08 +00:00
health.dart Remove unnecessary null checks in flutter_driver (#118864) 2023-01-20 22:02:49 +00:00
layer_tree.dart Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
message.dart Use curly_braces_in_flow_control_structures for non-flutter packages (#104629) 2022-05-25 20:01:11 +02:00
render_tree.dart Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
request_data.dart Sync lints (#126316) 2023-05-11 13:27:51 +00:00
semantics.dart Sync lints (#126316) 2023-05-11 13:27:51 +00:00
text_input_action.dart [flutter_driver] support send text input action (#106561) 2022-07-14 17:21:11 -07:00
text.dart Prepare packages (minus tools,framework) for use_super_parameters (#100510) 2022-03-30 15:31:59 -07:00
wait.dart Remove 'must not be null' comments from various libraries. (#134984) 2023-09-20 15:44:49 +00:00