flutter/packages/flutter_test/lib/src
Greg Spencer 4ce7fdd92b
Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994)
## Description

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

This PR removes them from the library in the repo that don't have anything to do with the framework.

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/134984
- https://github.com/flutter/flutter/pull/134991
- https://github.com/flutter/flutter/pull/134992
- https://github.com/flutter/flutter/pull/134993

## Tests
 - Documentation only change.
2023-09-19 17:26:07 +00:00
..
_binding_io.dart Sample code for ImageProvider (#131952) 2023-08-09 22:58:26 +00:00
_binding_web.dart Clean up the bindings APIs. (#89451) 2022-02-03 14:55:15 -08:00
_goldens_io.dart Fix leaks (#126144) 2023-05-08 09:11:23 +00:00
_goldens_web.dart Remove uses of deprecated test_api imports (#124732) 2023-04-20 20:55:28 +00:00
_matchers_io.dart Add support for Future<List<int>?> to MatchesGoldenFile (#132965) 2023-08-22 19:40:18 +00:00
_matchers_web.dart Stand-alone widget tree with multiple render trees to enable multi-view rendering (#125003) 2023-07-17 16:14:08 +00:00
accessibility.dart MinimumTextContrastGuideline should dispose image. (#133861) 2023-09-06 11:00:56 -07:00
animation_sheet.dart Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
binding.dart Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
controller.dart Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
deprecated.dart Deprecate these old APIs (#116793) 2023-04-06 19:53:50 +00:00
event_simulation.dart replace some ._() constructors with class modifiers (#122765) 2023-03-23 12:29:18 -07:00
finders.dart Adds SemanticsNode Finders for searching the semantics tree (#127137) 2023-08-10 21:31:06 +00:00
frame_timing_summarizer.dart Remove unnecessary null checks in flutter_test (#118865) 2023-01-20 22:01:13 +00:00
goldens.dart Switch imports from test_api to focused libaries (#125854) 2023-05-04 08:01:12 +00:00
image.dart Remove unnecessary null checks in flutter_test (#118865) 2023-01-20 22:01:13 +00:00
matchers.dart PaginatedDataTable improvements (#131374) 2023-08-15 00:55:07 +00:00
mock_canvas.dart Analyze code snippets in flutter_test docs (#132246) 2023-08-10 17:18:12 +00:00
mock_event_channel.dart [flutter_test] Adds method to mock EventChannels (#124415) 2023-04-10 17:02:48 +00:00
nonconst.dart Analyze code snippets in flutter_test docs (#132246) 2023-08-10 17:18:12 +00:00
platform.dart Unskip the bidi semantics test. (#62823) 2020-08-05 19:21:11 -07:00
recording_canvas.dart Add disposal mechanism for created Layers to TestRecordingPaintingContext. (#134768) 2023-09-16 19:50:23 +00:00
restoration.dart add some exports of public API in foundation/serialization.dart (#104231) 2022-06-08 13:33:12 -07:00
stack_manipulation.dart Remove unnecessary null checks in flutter_test (#118865) 2023-01-20 22:01:13 +00:00
test_async_utils.dart Analyze code snippets in flutter_test docs (#132246) 2023-08-10 17:18:12 +00:00
test_compat.dart Add retry flag to flutter_test (#125851) 2023-06-01 22:25:52 +00:00
test_default_binary_messenger.dart Remove 'must be non-null' and 'must not be null' comments from non-framework libraries (#134994) 2023-09-19 17:26:07 +00:00
test_exception_reporter.dart Switch imports from test_api to focused libaries (#125854) 2023-05-04 08:01:12 +00:00
test_pointer.dart fixes to anticipate next Dart linter release (#127211) 2023-05-19 21:27:24 +00:00
test_text_input_key_handler.dart Add deleteBackwardByDecomposingPreviousCharacter mapping for tests (#132919) 2023-08-21 23:27:19 +00:00
test_text_input.dart Deprecate these old APIs (#116793) 2023-04-06 19:53:50 +00:00
test_vsync.dart License update (#45373) 2019-11-27 15:04:02 -08:00
tree_traversal.dart Adds SemanticsNode Finders for searching the semantics tree (#127137) 2023-08-10 21:31:06 +00:00
widget_tester.dart Adds SemanticsNode Finders for searching the semantics tree (#127137) 2023-08-10 21:31:06 +00:00
window.dart Remove deprecated TestWindow.platformBrightnessTestValue/TestWindow.clearPlatformBrightnessTestValue (#133178) 2023-09-01 20:35:58 +00:00