From c6e1a4dc9a509780718e87e037ad40a3e590da98 Mon Sep 17 00:00:00 2001 From: Kate Lovett Date: Wed, 22 Feb 2023 00:34:19 +0300 Subject: [PATCH] Fix formatting (#121167) --- .../lib/src/material/tab_controller.dart | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/packages/flutter/lib/src/material/tab_controller.dart b/packages/flutter/lib/src/material/tab_controller.dart index bcbd1bdf9a..0229fe17c4 100644 --- a/packages/flutter/lib/src/material/tab_controller.dart +++ b/packages/flutter/lib/src/material/tab_controller.dart @@ -101,16 +101,20 @@ class TabController extends ChangeNotifier { /// /// The `initialIndex` must be valid given [length] and must not be null. If /// [length] is zero, then `initialIndex` must be 0 (the default). - TabController({ int initialIndex = 0, Duration? animationDuration, required this.length, required TickerProvider vsync}) - : assert(length >= 0), - assert(initialIndex >= 0 && (length == 0 || initialIndex < length)), - _index = initialIndex, - _previousIndex = initialIndex, - _animationDuration = animationDuration ?? kTabScrollDuration, - _animationController = AnimationController.unbounded( - value: initialIndex.toDouble(), - vsync: vsync, - ); + TabController({ + int initialIndex = 0, + Duration? animationDuration, + required this.length, + required TickerProvider vsync, + }) : assert(length >= 0), + assert(initialIndex >= 0 && (length == 0 || initialIndex < length)), + _index = initialIndex, + _previousIndex = initialIndex, + _animationDuration = animationDuration ?? kTabScrollDuration, + _animationController = AnimationController.unbounded( + value: initialIndex.toDouble(), + vsync: vsync, + ); // Private constructor used by `_copyWith`. This allows a new TabController to // be created without having to create a new animationController.