apply dart_style 3.0.1 (#160875)

dart_style 3.0.1 comes with some minor style fixes:
https://github.com/dart-lang/dart_style/blob/main/CHANGELOG.md#301

This PR applies this fixes in bulk across the repository. (Otherwise,
the next person touching these files would have been the one updating
them to the new format by running the formatter).
diff --git a/dev/bots/custom_rules/render_box_intrinsics.dart b/dev/bots/custom_rules/render_box_intrinsics.dart
index 986d024..b5890e7 100644
--- a/dev/bots/custom_rules/render_box_intrinsics.dart
+++ b/dev/bots/custom_rules/render_box_intrinsics.dart
@@ -108,8 +108,8 @@
       return;
     }
     final bool isCallingSuperImplementation = switch (node.parent) {
-      PropertyAccess(target: SuperExpression()) || MethodInvocation(target: SuperExpression()) =>
-        true,
+      PropertyAccess(target: SuperExpression()) ||
+      MethodInvocation(target: SuperExpression()) => true,
       _ => false,
     };
     if (isCallingSuperImplementation) {
diff --git a/dev/conductor/core/lib/src/start.dart b/dev/conductor/core/lib/src/start.dart
index 1bd18e8..ca4254e 100644
--- a/dev/conductor/core/lib/src/start.dart
+++ b/dev/conductor/core/lib/src/start.dart
@@ -242,8 +242,9 @@
 
     return switch (lastVersion.type) {
       VersionType.stable => ReleaseType.STABLE_HOTFIX,
-      VersionType.development || VersionType.gitDescribe || VersionType.latest =>
-        ReleaseType.STABLE_INITIAL,
+      VersionType.development ||
+      VersionType.gitDescribe ||
+      VersionType.latest => ReleaseType.STABLE_INITIAL,
     };
   }
 
diff --git a/dev/conductor/core/lib/src/version.dart b/dev/conductor/core/lib/src/version.dart
index d92cd3e..8aa3f10 100644
--- a/dev/conductor/core/lib/src/version.dart
+++ b/dev/conductor/core/lib/src/version.dart
@@ -141,8 +141,9 @@
     int? nextN = previousVersion.n;
     nextVersionType ??= switch (previousVersion.type) {
       VersionType.stable => VersionType.stable,
-      VersionType.latest || VersionType.gitDescribe || VersionType.development =>
-        VersionType.development,
+      VersionType.latest ||
+      VersionType.gitDescribe ||
+      VersionType.development => VersionType.development,
     };
 
     switch (increment) {
diff --git a/packages/flutter/lib/src/cupertino/nav_bar.dart b/packages/flutter/lib/src/cupertino/nav_bar.dart
index b49d2d5..283cc80 100644
--- a/packages/flutter/lib/src/cupertino/nav_bar.dart
+++ b/packages/flutter/lib/src/cupertino/nav_bar.dart
@@ -2268,11 +2268,8 @@
        bottomLargeExpanded = bottomNavBar.largeExpanded,
        topLargeExpanded = topNavBar.largeExpanded,
        transitionBox =
-           // paintBounds are based on offset zero so it's ok to expand the Rects.
-           bottomNavBar
-           .renderBox
-           .paintBounds
-           .expandToInclude(topNavBar.renderBox.paintBounds),
+       // paintBounds are based on offset zero so it's ok to expand the Rects.
+       bottomNavBar.renderBox.paintBounds.expandToInclude(topNavBar.renderBox.paintBounds),
        forwardDirection = directionality == TextDirection.ltr ? 1.0 : -1.0;
 
   static final Animatable<double> fadeOut = Tween<double>(begin: 1.0, end: 0.0);
diff --git a/packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart b/packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart
index 3aa6b5a..685e38f 100644
--- a/packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart
+++ b/packages/flutter/lib/src/cupertino/text_selection_toolbar_button.dart
@@ -96,8 +96,7 @@
       ContextMenuButtonType.share => localizations.shareButtonLabel,
       ContextMenuButtonType.liveTextInput ||
       ContextMenuButtonType.delete ||
-      ContextMenuButtonType.custom =>
-        '',
+      ContextMenuButtonType.custom => '',
     };
   }
 
diff --git a/packages/flutter/lib/src/gestures/tap_and_drag.dart b/packages/flutter/lib/src/gestures/tap_and_drag.dart
index 7de97aa..06b338a 100644
--- a/packages/flutter/lib/src/gestures/tap_and_drag.dart
+++ b/packages/flutter/lib/src/gestures/tap_and_drag.dart
@@ -1470,8 +1470,7 @@
   'This feature was deprecated after v3.9.0-19.0.pre.',
 )
 /// {@macro flutter.gestures.selectionrecognizers.TapAndPanGestureRecognizer}
-class TapAndDragGestureRecognizer
-    extends BaseTapAndDragGestureRecognizer {
+class TapAndDragGestureRecognizer extends BaseTapAndDragGestureRecognizer {
   /// Create a gesture recognizer for interactions on a plane.
   @Deprecated(
     'Use TapAndPanGestureRecognizer instead. '
diff --git a/packages/flutter/lib/src/material/app_bar.dart b/packages/flutter/lib/src/material/app_bar.dart
index 334761f..89cd4ed 100644
--- a/packages/flutter/lib/src/material/app_bar.dart
+++ b/packages/flutter/lib/src/material/app_bar.dart
@@ -1022,8 +1022,7 @@
             TargetPlatform.android ||
             TargetPlatform.fuchsia ||
             TargetPlatform.linux ||
-            TargetPlatform.windows =>
-              true,
+            TargetPlatform.windows => true,
             TargetPlatform.iOS || TargetPlatform.macOS => null,
           },
           header: true,
diff --git a/packages/flutter/lib/src/material/elevated_button.dart b/packages/flutter/lib/src/material/elevated_button.dart
index 1504dca..d8aef58 100644
--- a/packages/flutter/lib/src/material/elevated_button.dart
+++ b/packages/flutter/lib/src/material/elevated_button.dart
@@ -237,12 +237,12 @@
     )) {
       (null, null) => null,
       (_, Color(a: 0.0)) => WidgetStatePropertyAll<Color?>(overlayColor),
-      (_, final Color color) || (final Color color, _) =>
-        WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
-          WidgetState.pressed: color.withOpacity(0.1),
-          WidgetState.hovered: color.withOpacity(0.08),
-          WidgetState.focused: color.withOpacity(0.1),
-        }),
+      (_, final Color color) ||
+      (final Color color, _) => WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
+        WidgetState.pressed: color.withOpacity(0.1),
+        WidgetState.hovered: color.withOpacity(0.08),
+        WidgetState.focused: color.withOpacity(0.1),
+      }),
     };
 
     WidgetStateProperty<double>? elevationValue;
diff --git a/packages/flutter/lib/src/material/filled_button.dart b/packages/flutter/lib/src/material/filled_button.dart
index 32a4899..be27cf8 100644
--- a/packages/flutter/lib/src/material/filled_button.dart
+++ b/packages/flutter/lib/src/material/filled_button.dart
@@ -302,12 +302,12 @@
     )) {
       (null, null) => null,
       (_, Color(a: 0.0)) => WidgetStatePropertyAll<Color?>(overlayColor),
-      (_, final Color color) || (final Color color, _) =>
-        WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
-          WidgetState.pressed: color.withOpacity(0.1),
-          WidgetState.hovered: color.withOpacity(0.08),
-          WidgetState.focused: color.withOpacity(0.1),
-        }),
+      (_, final Color color) ||
+      (final Color color, _) => WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
+        WidgetState.pressed: color.withOpacity(0.1),
+        WidgetState.hovered: color.withOpacity(0.08),
+        WidgetState.focused: color.withOpacity(0.1),
+      }),
     };
 
     return ButtonStyle(
diff --git a/packages/flutter/lib/src/material/flexible_space_bar.dart b/packages/flutter/lib/src/material/flexible_space_bar.dart
index cff2a2a..ea38d8b 100644
--- a/packages/flutter/lib/src/material/flexible_space_bar.dart
+++ b/packages/flutter/lib/src/material/flexible_space_bar.dart
@@ -194,8 +194,7 @@
           TargetPlatform.android ||
           TargetPlatform.fuchsia ||
           TargetPlatform.linux ||
-          TargetPlatform.windows =>
-            false,
+          TargetPlatform.windows => false,
           TargetPlatform.iOS || TargetPlatform.macOS => true,
         };
   }
diff --git a/packages/flutter/lib/src/material/outlined_button.dart b/packages/flutter/lib/src/material/outlined_button.dart
index 1ca502b..2647394 100644
--- a/packages/flutter/lib/src/material/outlined_button.dart
+++ b/packages/flutter/lib/src/material/outlined_button.dart
@@ -231,12 +231,12 @@
     )) {
       (null, null) => null,
       (_, Color(a: 0.0)) => WidgetStatePropertyAll<Color?>(overlayColor),
-      (_, final Color color) || (final Color color, _) =>
-        WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
-          WidgetState.pressed: color.withOpacity(0.1),
-          WidgetState.hovered: color.withOpacity(0.08),
-          WidgetState.focused: color.withOpacity(0.1),
-        }),
+      (_, final Color color) ||
+      (final Color color, _) => WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
+        WidgetState.pressed: color.withOpacity(0.1),
+        WidgetState.hovered: color.withOpacity(0.08),
+        WidgetState.focused: color.withOpacity(0.1),
+      }),
     };
 
     return ButtonStyle(
diff --git a/packages/flutter/lib/src/material/page_transitions_theme.dart b/packages/flutter/lib/src/material/page_transitions_theme.dart
index 5d50f12..b0afd35 100644
--- a/packages/flutter/lib/src/material/page_transitions_theme.dart
+++ b/packages/flutter/lib/src/material/page_transitions_theme.dart
@@ -1204,8 +1204,7 @@
           TargetPlatform.fuchsia ||
           TargetPlatform.windows ||
           TargetPlatform.macOS ||
-          TargetPlatform.linux =>
-            const ZoomPageTransitionsBuilder(),
+          TargetPlatform.linux => const ZoomPageTransitionsBuilder(),
         };
     return matchingBuilder.buildTransitions<T>(
       widget.route,
diff --git a/packages/flutter/lib/src/material/progress_indicator_theme.dart b/packages/flutter/lib/src/material/progress_indicator_theme.dart
index 5e5f926..71c709d 100644
--- a/packages/flutter/lib/src/material/progress_indicator_theme.dart
+++ b/packages/flutter/lib/src/material/progress_indicator_theme.dart
@@ -31,8 +31,7 @@
 ///    theme down its subtree.
 ///  * [ThemeData.progressIndicatorTheme], which describes the defaults for
 ///    any progress indicators as part of the application's [ThemeData].
-class ProgressIndicatorThemeData
-    with Diagnosticable {
+class ProgressIndicatorThemeData with Diagnosticable {
   /// Creates the set of properties used to configure [ProgressIndicator] widgets.
   const ProgressIndicatorThemeData({
     this.color,
diff --git a/packages/flutter/lib/src/material/reorderable_list.dart b/packages/flutter/lib/src/material/reorderable_list.dart
index fabfdcc..49a62f6 100644
--- a/packages/flutter/lib/src/material/reorderable_list.dart
+++ b/packages/flutter/lib/src/material/reorderable_list.dart
@@ -399,11 +399,8 @@
 
     final EdgeInsets startPadding, endPadding, listPadding;
     (startPadding, endPadding, listPadding) = switch (widget.scrollDirection) {
-      Axis.horizontal || Axis.vertical when (start ?? end) == null => (
-        EdgeInsets.zero,
-        EdgeInsets.zero,
-        padding,
-      ),
+      Axis.horizontal ||
+      Axis.vertical when (start ?? end) == null => (EdgeInsets.zero, EdgeInsets.zero, padding),
       Axis.horizontal => (
         padding.copyWith(left: 0),
         padding.copyWith(right: 0),
diff --git a/packages/flutter/lib/src/material/scaffold.dart b/packages/flutter/lib/src/material/scaffold.dart
index 8dd2ecf..a1b7979 100644
--- a/packages/flutter/lib/src/material/scaffold.dart
+++ b/packages/flutter/lib/src/material/scaffold.dart
@@ -1212,8 +1212,7 @@
         FloatingActionButtonLocation.endTop ||
         FloatingActionButtonLocation.miniStartTop ||
         FloatingActionButtonLocation.miniCenterTop ||
-        FloatingActionButtonLocation.miniEndTop =>
-          false,
+        FloatingActionButtonLocation.miniEndTop => false,
         FloatingActionButtonLocation.startDocked ||
         FloatingActionButtonLocation.startFloat ||
         FloatingActionButtonLocation.centerDocked ||
@@ -1226,8 +1225,7 @@
         FloatingActionButtonLocation.miniCenterDocked ||
         FloatingActionButtonLocation.miniCenterFloat ||
         FloatingActionButtonLocation.miniEndDocked ||
-        FloatingActionButtonLocation.miniEndFloat =>
-          true,
+        FloatingActionButtonLocation.miniEndFloat => true,
         FloatingActionButtonLocation() => true,
       };
       if (floatingActionButtonRect.size != Size.zero && isSnackBarFloating && showAboveFab) {
diff --git a/packages/flutter/lib/src/material/tabs.dart b/packages/flutter/lib/src/material/tabs.dart
index 8b2109c..34bf496 100644
--- a/packages/flutter/lib/src/material/tabs.dart
+++ b/packages/flutter/lib/src/material/tabs.dart
@@ -1919,8 +1919,9 @@
       if (theme.useMaterial3) {
         final AlignmentGeometry effectiveAlignment = switch (effectiveTabAlignment) {
           TabAlignment.center => Alignment.center,
-          TabAlignment.start || TabAlignment.startOffset || TabAlignment.fill =>
-            AlignmentDirectional.centerStart,
+          TabAlignment.start ||
+          TabAlignment.startOffset ||
+          TabAlignment.fill => AlignmentDirectional.centerStart,
         };
 
         final Color dividerColor =
diff --git a/packages/flutter/lib/src/material/text_button.dart b/packages/flutter/lib/src/material/text_button.dart
index 4c5303f..f863f91 100644
--- a/packages/flutter/lib/src/material/text_button.dart
+++ b/packages/flutter/lib/src/material/text_button.dart
@@ -243,12 +243,12 @@
     )) {
       (null, null) => null,
       (_, Color(a: 0.0)) => WidgetStatePropertyAll<Color?>(overlayColor),
-      (_, final Color color) || (final Color color, _) =>
-        WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
-          WidgetState.pressed: color.withOpacity(0.1),
-          WidgetState.hovered: color.withOpacity(0.08),
-          WidgetState.focused: color.withOpacity(0.1),
-        }),
+      (_, final Color color) ||
+      (final Color color, _) => WidgetStateProperty<Color?>.fromMap(<WidgetState, Color?>{
+        WidgetState.pressed: color.withOpacity(0.1),
+        WidgetState.hovered: color.withOpacity(0.08),
+        WidgetState.focused: color.withOpacity(0.1),
+      }),
     };
 
     return ButtonStyle(
diff --git a/packages/flutter/lib/src/material/time_picker.dart b/packages/flutter/lib/src/material/time_picker.dart
index 96ce8d4..c73131a 100644
--- a/packages/flutter/lib/src/material/time_picker.dart
+++ b/packages/flutter/lib/src/material/time_picker.dart
@@ -2948,8 +2948,8 @@
     final Orientation orientation = _orientation.value ?? MediaQuery.orientationOf(context);
     final HourFormat timeOfDayHour = hourFormat(of: timeOfDayFormat);
     final _HourDialType hourMode = switch (timeOfDayHour) {
-      HourFormat.HH || HourFormat.H when theme.useMaterial3 =>
-        _HourDialType.twentyFourHourDoubleRing,
+      HourFormat.HH ||
+      HourFormat.H when theme.useMaterial3 => _HourDialType.twentyFourHourDoubleRing,
       HourFormat.HH || HourFormat.H => _HourDialType.twentyFourHour,
       HourFormat.h => _HourDialType.twelveHour,
     };
diff --git a/packages/flutter/lib/src/material/tooltip.dart b/packages/flutter/lib/src/material/tooltip.dart
index 37671b5..c83266a 100644
--- a/packages/flutter/lib/src/material/tooltip.dart
+++ b/packages/flutter/lib/src/material/tooltip.dart
@@ -771,10 +771,12 @@
 
   EdgeInsets _getDefaultPadding() {
     return switch (Theme.of(context).platform) {
-      TargetPlatform.macOS || TargetPlatform.linux || TargetPlatform.windows =>
-        const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
-      TargetPlatform.android || TargetPlatform.fuchsia || TargetPlatform.iOS =>
-        const EdgeInsets.symmetric(horizontal: 16.0, vertical: 4.0),
+      TargetPlatform.macOS ||
+      TargetPlatform.linux ||
+      TargetPlatform.windows => const EdgeInsets.symmetric(horizontal: 8.0, vertical: 4.0),
+      TargetPlatform.android ||
+      TargetPlatform.fuchsia ||
+      TargetPlatform.iOS => const EdgeInsets.symmetric(horizontal: 16.0, vertical: 4.0),
     };
   }
 
diff --git a/packages/flutter/lib/src/painting/flutter_logo.dart b/packages/flutter/lib/src/painting/flutter_logo.dart
index 6e756a6..8a5fb5b 100644
--- a/packages/flutter/lib/src/painting/flutter_logo.dart
+++ b/packages/flutter/lib/src/painting/flutter_logo.dart
@@ -396,7 +396,8 @@
         final double finalLeftTextPosition = // position of text in rest position
             (256.4 / 820.0) *
                 rect.width - // 256.4 is the distance from the left edge to the left of the F when the whole logo is 820.0 wide
-            (32.0 / 350.0) * fontSize; // 32 is the distance from the text bounding box edge to the left edge of the F when the font size is 350
+            (32.0 / 350.0) *
+                fontSize; // 32 is the distance from the text bounding box edge to the left edge of the F when the font size is 350
         final double initialLeftTextPosition = // position of text when just starting the animation
             rect.width / 2.0 - _textBoundingRect.width * scale;
         final Offset textOffset = Offset(
diff --git a/packages/flutter/lib/src/painting/text_painter.dart b/packages/flutter/lib/src/painting/text_painter.dart
index 6126453..bcca79b 100644
--- a/packages/flutter/lib/src/painting/text_painter.dart
+++ b/packages/flutter/lib/src/painting/text_painter.dart
@@ -139,8 +139,7 @@
       ui.PlaceholderAlignment.bottom ||
       ui.PlaceholderAlignment.middle ||
       ui.PlaceholderAlignment.aboveBaseline ||
-      ui.PlaceholderAlignment.belowBaseline =>
-        'PlaceholderDimensions($size, $alignment)',
+      ui.PlaceholderAlignment.belowBaseline => 'PlaceholderDimensions($size, $alignment)',
       ui.PlaceholderAlignment.baseline =>
         'PlaceholderDimensions($size, $alignment($baselineOffset from top))',
     };
@@ -222,8 +221,7 @@
       0x000B || // Form Feed
       0x000C || // Vertical Feed
       0x2028 || // Line Separator
-      0x2029 =>
-        true, // Paragraph Separator
+      0x2029 => true, // Paragraph Separator
       _ => false,
     };
   }
@@ -381,8 +379,7 @@
       0x0009 => true, // horizontal tab
       0x00A0 || // no-break space
       0x2007 || // figure space
-      0x202F =>
-        false, // narrow no-break space
+      0x202F => false, // narrow no-break space
       _ => _regExpSpaceSeparators.hasMatch(lastCodeUnit),
     };
 
diff --git a/packages/flutter/lib/src/rendering/binding.dart b/packages/flutter/lib/src/rendering/binding.dart
index d5806a9..df810c0 100644
--- a/packages/flutter/lib/src/rendering/binding.dart
+++ b/packages/flutter/lib/src/rendering/binding.dart
@@ -285,8 +285,7 @@
     'This feature was deprecated after v3.10.0-12.0.pre.',
   )
   // TODO(goderbauer): When this deprecated property is removed also delete the _ReusableRenderView class.
-  late final RenderView
-  renderView = _ReusableRenderView(view: platformDispatcher.implicitView!);
+  late final RenderView renderView = _ReusableRenderView(view: platformDispatcher.implicitView!);
 
   /// Creates the [PipelineOwner] that serves as the root of the pipeline owner
   /// tree ([rootPipelineOwner]).
diff --git a/packages/flutter/lib/src/rendering/flex.dart b/packages/flutter/lib/src/rendering/flex.dart
index a53595f..c176081 100644
--- a/packages/flutter/lib/src/rendering/flex.dart
+++ b/packages/flutter/lib/src/rendering/flex.dart
@@ -829,8 +829,7 @@
       CrossAxisAlignment.start ||
       CrossAxisAlignment.center ||
       CrossAxisAlignment.end ||
-      CrossAxisAlignment.stretch =>
-        false,
+      CrossAxisAlignment.stretch => false,
     };
   }
 
@@ -884,8 +883,7 @@
       CrossAxisAlignment.start ||
       CrossAxisAlignment.center ||
       CrossAxisAlignment.end ||
-      CrossAxisAlignment.baseline =>
-        false,
+      CrossAxisAlignment.baseline => false,
     };
     return switch (_direction) {
       Axis.horizontal =>
@@ -915,8 +913,7 @@
       CrossAxisAlignment.start ||
       CrossAxisAlignment.center ||
       CrossAxisAlignment.end ||
-      CrossAxisAlignment.baseline =>
-        false,
+      CrossAxisAlignment.baseline => false,
     };
     return switch (_direction) {
       Axis.horizontal => BoxConstraints(
diff --git a/packages/flutter/lib/src/rendering/paragraph.dart b/packages/flutter/lib/src/rendering/paragraph.dart
index b7da6d4..45986b2 100644
--- a/packages/flutter/lib/src/rendering/paragraph.dart
+++ b/packages/flutter/lib/src/rendering/paragraph.dart
@@ -162,8 +162,7 @@
             ui.PlaceholderAlignment.belowBaseline ||
             ui.PlaceholderAlignment.bottom ||
             ui.PlaceholderAlignment.middle ||
-            ui.PlaceholderAlignment.top =>
-              null,
+            ui.PlaceholderAlignment.top => null,
             ui.PlaceholderAlignment.baseline => getBaseline(
               child,
               childConstraints,
diff --git a/packages/flutter/lib/src/rendering/table.dart b/packages/flutter/lib/src/rendering/table.dart
index 8864e6f..8d3f891 100644
--- a/packages/flutter/lib/src/rendering/table.dart
+++ b/packages/flutter/lib/src/rendering/table.dart
@@ -1063,8 +1063,7 @@
         TableCellVerticalAlignment.middle ||
         TableCellVerticalAlignment.bottom ||
         TableCellVerticalAlignment.fill ||
-        TableCellVerticalAlignment.intrinsicHeight =>
-          null,
+        TableCellVerticalAlignment.intrinsicHeight => null,
       };
       if (childBaseline != null && (baselineOffset == null || baselineOffset < childBaseline)) {
         baselineOffset = childBaseline;
diff --git a/packages/flutter/lib/src/widgets/editable_text.dart b/packages/flutter/lib/src/widgets/editable_text.dart
index 302df06..6a1f500 100644
--- a/packages/flutter/lib/src/widgets/editable_text.dart
+++ b/packages/flutter/lib/src/widgets/editable_text.dart
@@ -3961,8 +3961,7 @@
     TargetPlatform.fuchsia ||
     TargetPlatform.linux ||
     TargetPlatform.macOS ||
-    TargetPlatform.windows =>
-      false,
+    TargetPlatform.windows => false,
   };
 
   bool _isInternalScrollableNotification(BuildContext? notificationContext) {
diff --git a/packages/flutter/lib/src/widgets/focus_traversal.dart b/packages/flutter/lib/src/widgets/focus_traversal.dart
index 50f95d6..20dd29d 100644
--- a/packages/flutter/lib/src/widgets/focus_traversal.dart
+++ b/packages/flutter/lib/src/widgets/focus_traversal.dart
@@ -915,8 +915,8 @@
             (FocusNode node) => node.rect != target && node.rect.center.dx <= target.left,
           TraversalDirection.right =>
             (FocusNode node) => node.rect != target && node.rect.center.dx >= target.right,
-          TraversalDirection.up || TraversalDirection.down =>
-            throw ArgumentError('Invalid direction $direction'),
+          TraversalDirection.up ||
+          TraversalDirection.down => throw ArgumentError('Invalid direction $direction'),
         }).toList();
     // Sort all nodes from left to right.
     mergeSort<FocusNode>(
@@ -941,8 +941,8 @@
             (FocusNode node) => node.rect != target && node.rect.center.dy <= target.top,
           TraversalDirection.down =>
             (FocusNode node) => node.rect != target && node.rect.center.dy >= target.bottom,
-          TraversalDirection.left || TraversalDirection.right =>
-            throw ArgumentError('Invalid direction $direction'),
+          TraversalDirection.left ||
+          TraversalDirection.right => throw ArgumentError('Invalid direction $direction'),
         }).toList();
     mergeSort<FocusNode>(
       sorted,
diff --git a/packages/flutter/lib/src/widgets/layout_builder.dart b/packages/flutter/lib/src/widgets/layout_builder.dart
index ff3ad9c..99f1204 100644
--- a/packages/flutter/lib/src/widgets/layout_builder.dart
+++ b/packages/flutter/lib/src/widgets/layout_builder.dart
@@ -104,8 +104,7 @@
       SchedulerPhase.idle || SchedulerPhase.postFrameCallbacks => true,
       SchedulerPhase.transientCallbacks ||
       SchedulerPhase.midFrameMicrotasks ||
-      SchedulerPhase.persistentCallbacks =>
-        false,
+      SchedulerPhase.persistentCallbacks => false,
     };
     if (!deferMarkNeedsLayout) {
       renderObject.markNeedsLayout();
diff --git a/packages/flutter/lib/src/widgets/overscroll_indicator.dart b/packages/flutter/lib/src/widgets/overscroll_indicator.dart
index 2b95ed5..cc07067 100644
--- a/packages/flutter/lib/src/widgets/overscroll_indicator.dart
+++ b/packages/flutter/lib/src/widgets/overscroll_indicator.dart
@@ -1027,8 +1027,7 @@
   /// indicator from showing.
   ///
   /// Defaults to true.
-  bool
-  accepted = true;
+  bool accepted = true;
 
   /// Call this method if the overscroll indicator should be prevented.
   void disallowIndicator() {
diff --git a/packages/flutter/lib/src/widgets/selectable_region.dart b/packages/flutter/lib/src/widgets/selectable_region.dart
index 4db8ab7..7829d697c 100644
--- a/packages/flutter/lib/src/widgets/selectable_region.dart
+++ b/packages/flutter/lib/src/widgets/selectable_region.dart
@@ -307,8 +307,7 @@
       TargetPlatform.macOS ||
       TargetPlatform.fuchsia ||
       TargetPlatform.linux ||
-      TargetPlatform.windows =>
-        false,
+      TargetPlatform.windows => false,
       // TODO(bleroux): the share button should be shown on iOS but the share
       // functionality requires some changes on the engine side because, on iPad,
       // it needs an anchor for the popup.
@@ -531,10 +530,8 @@
   void _updateSelectionStatus() {
     final SelectionGeometry geometry = _selectionDelegate.value;
     final TextSelection selection = switch (geometry.status) {
-      SelectionStatus.uncollapsed || SelectionStatus.collapsed => const TextSelection(
-        baseOffset: 0,
-        extentOffset: 1,
-      ),
+      SelectionStatus.uncollapsed ||
+      SelectionStatus.collapsed => const TextSelection(baseOffset: 0, extentOffset: 1),
       SelectionStatus.none => const TextSelection.collapsed(offset: 1),
     };
     textEditingValue = TextEditingValue(text: '__', selection: selection);
@@ -3065,8 +3062,8 @@
     if (currentSelectionStartIndex == -1) {
       currentSelectionStartIndex =
           currentSelectionEndIndex = switch (event.direction) {
-            SelectionExtendDirection.previousLine || SelectionExtendDirection.backward =>
-              selectables.length - 1,
+            SelectionExtendDirection.previousLine ||
+            SelectionExtendDirection.backward => selectables.length - 1,
             SelectionExtendDirection.nextLine || SelectionExtendDirection.forward => 0,
           };
     }
diff --git a/packages/flutter/lib/src/widgets/text_selection.dart b/packages/flutter/lib/src/widgets/text_selection.dart
index ddea8fb..dfd7b23 100644
--- a/packages/flutter/lib/src/widgets/text_selection.dart
+++ b/packages/flutter/lib/src/widgets/text_selection.dart
@@ -2310,8 +2310,8 @@
       case TargetPlatform.android:
         if (editableText.widget.stylusHandwritingEnabled) {
           final bool stylusEnabled = switch (kind) {
-            PointerDeviceKind.stylus || PointerDeviceKind.invertedStylus =>
-              editableText.widget.stylusHandwritingEnabled,
+            PointerDeviceKind.stylus ||
+            PointerDeviceKind.invertedStylus => editableText.widget.stylusHandwritingEnabled,
             _ => false,
           };
           if (stylusEnabled) {
diff --git a/packages/flutter_test/lib/src/finders.dart b/packages/flutter_test/lib/src/finders.dart
index be16f47..d8ce4a9 100644
--- a/packages/flutter_test/lib/src/finders.dart
+++ b/packages/flutter_test/lib/src/finders.dart
@@ -1293,8 +1293,8 @@
   @override
   String describeMatch(Plurality plurality) {
     return switch (plurality) {
-      Plurality.zero || Plurality.many =>
-        'non-overlapping TextRanges that match the Pattern "$pattern"',
+      Plurality.zero ||
+      Plurality.many => 'non-overlapping TextRanges that match the Pattern "$pattern"',
       Plurality.one => 'non-overlapping TextRange that matches the Pattern "$pattern"',
     };
   }
diff --git a/packages/flutter_tools/lib/src/build_system/targets/common.dart b/packages/flutter_tools/lib/src/build_system/targets/common.dart
index cf0ac1f..af46950 100644
--- a/packages/flutter_tools/lib/src/build_system/targets/common.dart
+++ b/packages/flutter_tools/lib/src/build_system/targets/common.dart
@@ -236,8 +236,7 @@
       TargetPlatform.android_arm ||
       TargetPlatform.android_arm64 ||
       TargetPlatform.android_x64 ||
-      TargetPlatform.android_x86 =>
-        'android',
+      TargetPlatform.android_x86 => 'android',
       TargetPlatform.darwin => 'macos',
       TargetPlatform.ios => 'ios',
       TargetPlatform.linux_arm64 || TargetPlatform.linux_x64 => 'linux',
diff --git a/packages/flutter_tools/lib/src/ios/devices.dart b/packages/flutter_tools/lib/src/ios/devices.dart
index c6e75f4..7ee363f 100644
--- a/packages/flutter_tools/lib/src/ios/devices.dart
+++ b/packages/flutter_tools/lib/src/ios/devices.dart
@@ -314,8 +314,7 @@
   /// to connect, wireless devices will have an interface of `usb`/`attached`.
   /// This may change after waiting for the device to connect in
   /// `waitForDeviceToConnect`.
-  DeviceConnectionInterface
-  connectionInterface;
+  DeviceConnectionInterface connectionInterface;
 
   @override
   bool isConnected;
diff --git a/packages/flutter_tools/lib/src/isolated/native_assets/macos/native_assets_host.dart b/packages/flutter_tools/lib/src/isolated/native_assets/macos/native_assets_host.dart
index 9e9ea50..4ee588f 100644
--- a/packages/flutter_tools/lib/src/isolated/native_assets/macos/native_assets_host.dart
+++ b/packages/flutter_tools/lib/src/isolated/native_assets/macos/native_assets_host.dart
@@ -128,10 +128,9 @@
   return <String>{
     for (final List<String> architectureSection
         in parseOtoolArchitectureSections(installNameResult.stdout as String).values)
-          // For each architecture, a separate install name is reported, which are
-          // not necessarily the same.
-          architectureSection
-          .single,
+      // For each architecture, a separate install name is reported, which are
+      // not necessarily the same.
+      architectureSection.single,
   };
 }
 
diff --git a/packages/flutter_tools/lib/src/reporting/unified_analytics.dart b/packages/flutter_tools/lib/src/reporting/unified_analytics.dart
index 24e422d..e8fa841 100644
--- a/packages/flutter_tools/lib/src/reporting/unified_analytics.dart
+++ b/packages/flutter_tools/lib/src/reporting/unified_analytics.dart
@@ -34,8 +34,7 @@
   if ( // Ignore local user branches.
   version.startsWith('[user-branch]') ||
       // Many CI systems don't do a full git checkout.
-          version
-          .endsWith('/unknown') ||
+      version.endsWith('/unknown') ||
       // Ignore bots.
       runningOnBot ||
       // Ignore when suppressed by FLUTTER_SUPPRESS_ANALYTICS.
diff --git a/packages/flutter_tools/lib/src/reporting/usage.dart b/packages/flutter_tools/lib/src/reporting/usage.dart
index 6e02d63..397552a 100644
--- a/packages/flutter_tools/lib/src/reporting/usage.dart
+++ b/packages/flutter_tools/lib/src/reporting/usage.dart
@@ -149,8 +149,7 @@
         ( // Ignore local user branches.
         version.startsWith('[user-branch]') ||
             // Many CI systems don't do a full git checkout.
-                version
-                .endsWith('/unknown') ||
+            version.endsWith('/unknown') ||
             // Ignore bots.
             runningOnBot ||
             // Ignore when suppressed by FLUTTER_SUPPRESS_ANALYTICS.
diff --git a/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart b/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart
index c8ce142..9567e78 100644
--- a/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart
+++ b/packages/flutter_tools/test/general.shard/isolated/macos/native_assets_test.dart
@@ -335,10 +335,8 @@
             stringContainsInOrder(<String>[
               'package:bar/bar.dart',
               if (flutterTester)
-                    // Tests run on host system, so the have the full path on the system.
-                    projectUri
-                    .resolve('build/native_assets/macos/libbar.dylib')
-                    .toFilePath()
+                // Tests run on host system, so the have the full path on the system.
+                projectUri.resolve('build/native_assets/macos/libbar.dylib').toFilePath()
               else
                 // Apps are a bundle with the dylibs on their dlopen path.
                 'bar.framework/bar',
@@ -349,10 +347,8 @@
             stringContainsInOrder(<String>[
               'package:buz/buz.dart',
               if (flutterTester)
-                    // Tests run on host system, so the have the full path on the system.
-                    projectUri
-                    .resolve('build/native_assets/macos/libbuz.dylib')
-                    .toFilePath()
+                // Tests run on host system, so the have the full path on the system.
+                projectUri.resolve('build/native_assets/macos/libbuz.dylib').toFilePath()
               else
                 // Apps are a bundle with the dylibs on their dlopen path.
                 'buz.framework/buz',
diff --git a/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart b/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart
index 0911250..281fb43 100644
--- a/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart
+++ b/packages/flutter_tools/test/general.shard/isolated/windows/native_assets_test.dart
@@ -145,8 +145,8 @@
             stringContainsInOrder(<String>[
               'package:bar/bar.dart',
               if (flutterTester)
-                    // Tests run on host system, so the have the full path on the system.
-                    projectUri
+                // Tests run on host system, so the have the full path on the system.
+                projectUri
                     .resolve('build/native_assets/$expectedDirectory/bar.dll')
                     .toFilePath()
                     .replaceAll(r'\', r'\\') // Undo JSON string escaping.
diff --git a/packages/flutter_tools/test/integration.shard/daemon_mode_test.dart b/packages/flutter_tools/test/integration.shard/daemon_mode_test.dart
index b587154..27d15fa 100644
--- a/packages/flutter_tools/test/integration.shard/daemon_mode_test.dart
+++ b/packages/flutter_tools/test/integration.shard/daemon_mode_test.dart
@@ -32,10 +32,12 @@
     await project.setUpIn(tempDir);
 
     const ProcessManager processManager = LocalProcessManager();
-    daemonProcess = await processManager.start(
-      <String>[flutterBin, ...getLocalEngineArguments(), '--show-test-device', 'daemon'],
-      workingDirectory: tempDir.path,
-    );
+    daemonProcess = await processManager.start(<String>[
+      flutterBin,
+      ...getLocalEngineArguments(),
+      '--show-test-device',
+      'daemon',
+    ], workingDirectory: tempDir.path);
 
     final StreamController<String> stdout = StreamController<String>.broadcast();
     transformToLines(daemonProcess.stdout).listen((String line) => stdout.add(line));