flutter/packages
Nate 2e748e8598
Implementing control flow collections (#146601)
This pull request aims for improved readability, based on issue #146600.

```dart
// before
Set<Color> _distinctVisibleColors() {
  final Set<Color> distinctVisibleColors = <Color>{};
  if (top.style != BorderStyle.none) {
    distinctVisibleColors.add(top.color);
  }
  if (right.style != BorderStyle.none) {
    distinctVisibleColors.add(right.color);
  }
  if (bottom.style != BorderStyle.none) {
    distinctVisibleColors.add(bottom.color);
  }
  if (left.style != BorderStyle.none) {
    distinctVisibleColors.add(left.color);
  }
  return distinctVisibleColors;
}

// after
Set<Color> _distinctVisibleColors() {
  return <Color>{
    if (top.style != BorderStyle.none) top.color,
    if (right.style != BorderStyle.none) right.color,
    if (bottom.style != BorderStyle.none) bottom.color,
    if (left.style != BorderStyle.none) left.color,
  };
}
```

Most of the repo should be covered in this PR (aside from `flutter_tools/`, since there was a lot going on in there).
2024-04-15 16:06:07 +00:00
..
flutter Implementing control flow collections (#146601) 2024-04-15 16:06:07 +00:00
flutter_driver [flutter_tools] Fix conductor for package args roll (#146646) 2024-04-12 21:38:03 +00:00
flutter_goldens Fix skwasm tests (#145570) 2024-04-09 19:35:07 +00:00
flutter_localizations Update material_color_utilities package version to latest 0.11.1 (#145959) 2024-04-03 02:16:13 +00:00
flutter_test Fix skwasm tests (#145570) 2024-04-09 19:35:07 +00:00
flutter_tools Avoid forwarding the data after socket is disconnected. (#146665) 2024-04-12 21:45:32 +00:00
flutter_web_plugins Update material_color_utilities package version to latest 0.11.1 (#145959) 2024-04-03 02:16:13 +00:00
fuchsia_remote_debug_protocol [flutter_tools] Fix conductor for package args roll (#146646) 2024-04-12 21:38:03 +00:00
integration_test Implementing control flow collections (#146601) 2024-04-15 16:06:07 +00:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00