@@ -131,8 +131,9 @@ class RouteController {
131131 _preservationStrategy = shouldPreserve;
132132
133133 void _maybeRemoveStaleRoute (RouteState routeState) {
134- final routeBuilder =
135- _getBuilderByPath (routeState.uri)? .copyWith (routeState: routeState);
134+ final routeBuilder = _getBuilderByPath (
135+ routeState.uri,
136+ )? .copyWith (routeState: routeState);
136137 if (routeBuilder == null ) return ;
137138 if (! _preservationStrategy (routeBuilder)) {
138139 _widgetCache[routeState] = SizedBox .shrink (key: routeState.key);
@@ -244,8 +245,9 @@ class RouteController {
244245 if (index < 0 || index >= state.routes.length) return false ;
245246
246247 _previousRouteForTransition = currentRouteState;
247- _nextAnimationEffect =
248- index < state.index ? backwardAnimationEffect : forwardAnimationEffect;
248+ _nextAnimationEffect = index < state.index
249+ ? backwardAnimationEffect
250+ : forwardAnimationEffect;
249251
250252 final newRoute = state.routes[index];
251253 addToCache ([newRoute]); // Ensure widget exists before navigating.
@@ -385,8 +387,9 @@ class RouteController {
385387 },
386388 builder: (context, results) {
387389 final children = _widgetCache.values.toList ();
388- final layerEffects =
389- results.isNotEmpty ? results.map ((e) => e.data).first : null ;
390+ final layerEffects = results.isNotEmpty
391+ ? results.map ((e) => e.data).first
392+ : null ;
390393 return PrioritizedIndexedStack (
391394 indices: [
392395 _indexOfRouteState (routeState),
@@ -411,8 +414,8 @@ class RouteController {
411414 }
412415
413416 static RouteController of (BuildContext context) {
414- final provider =
415- context .dependOnInheritedWidgetOfExactType <RouteControllerProvider >();
417+ final provider = context
418+ .dependOnInheritedWidgetOfExactType <RouteControllerProvider >();
416419 if (provider == null ) {
417420 throw FlutterError ('No RouteControllerProvider found in context' );
418421 }
0 commit comments