flutter/examples/api/lib/widgets/scroll_view
Ellet 876aa48ea5
Use super.key instead of manually passing the Key parameter to the parent class (#147621)
*Use `super.key` instead of manually passing the `Key` parameter using super(key: key) in the constructors.*

Since if you create a widget the new default will use `super.key` instead of `Key? key : super(key: key)` this small change is to maintain the consistency, it has no semantic change

also there are some other places that might need to be updated:

![image](https://github.com/flutter/flutter/assets/73608287/898f62f5-10f9-4d76-a46c-6def328177cb)

this file for example generate l10n project and it has all the dart code as String, it might have tests that validate the output somewhere that I might miss, also there are some other places like the `_Segment` class where it require `ValueKey` instead if `Key` so I didn't update them (even though it's possible)
2024-05-13 22:12:49 +00:00
..
custom_scroll_view.1.dart Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
grid_view.0.dart GridView sample code (#131900) 2023-08-10 20:53:05 +00:00
list_view.0.dart Enable strict-inference (#135043) 2023-09-20 19:59:08 +00:00
list_view.1.dart Use super.key instead of manually passing the Key parameter to the parent class (#147621) 2024-05-13 22:12:49 +00:00