flutter/packages/integration_test/lib
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
..
fix_data Adds dart_fix support to integration_test (#129579) 2023-06-27 18:01:06 +00:00
src flutter test --wasm support (#145347) 2024-03-21 20:08:07 +00:00
common.dart Implementing control flow collections (#146601) 2024-04-15 16:06:07 +00:00
integration_test_driver_extended.dart make integration_test_driver_extended.dart support writeResponseData--(done) (#128382) 2023-10-17 22:17:09 +00:00
integration_test_driver.dart make integration_test_driver_extended.dart support writeResponseData--(done) (#128382) 2023-10-17 22:17:09 +00:00
integration_test.dart Fix structure of pkg:integration_test (#137283) 2023-10-25 20:24:15 +00:00