@@ -127,8 +127,8 @@ class RouteController {
127127 static _TPreservationStrategy defaultPreservationStrategy = (routeBuider) =>
128128 routeBuider.shouldPreserve || routeBuider.routeState.shouldPreserve;
129129
130- void setPreservationStrategy (_TPreservationStrategy shouldPreserve ) =>
131- _preservationStrategy = shouldPreserve ;
130+ void setPreservationStrategy (_TPreservationStrategy preservationStrategy ) =>
131+ _preservationStrategy = preservationStrategy ;
132132
133133 void _maybeRemoveStaleRoute (RouteState routeState) {
134134 final routeBuilder = _getBuilderByPath (
@@ -245,9 +245,8 @@ class RouteController {
245245 if (index < 0 || index >= state.routes.length) return false ;
246246
247247 _previousRouteForTransition = currentRouteState;
248- _nextAnimationEffect = index < state.index
249- ? backwardAnimationEffect
250- : forwardAnimationEffect;
248+ _nextAnimationEffect =
249+ index < state.index ? backwardAnimationEffect : forwardAnimationEffect;
251250
252251 final newRoute = state.routes[index];
253252 addToCache ([newRoute]); // Ensure widget exists before navigating.
@@ -387,9 +386,8 @@ class RouteController {
387386 },
388387 builder: (context, results) {
389388 final children = _widgetCache.values.toList ();
390- final layerEffects = results.isNotEmpty
391- ? results.map ((e) => e.data).first
392- : null ;
389+ final layerEffects =
390+ results.isNotEmpty ? results.map ((e) => e.data).first : null ;
393391 return PrioritizedIndexedStack (
394392 indices: [
395393 _indexOfRouteState (routeState),
@@ -414,8 +412,8 @@ class RouteController {
414412 }
415413
416414 static RouteController of (BuildContext context) {
417- final provider = context
418- .dependOnInheritedWidgetOfExactType <RouteControllerProvider >();
415+ final provider =
416+ context .dependOnInheritedWidgetOfExactType <RouteControllerProvider >();
419417 if (provider == null ) {
420418 throw FlutterError ('No RouteControllerProvider found in context' );
421419 }
0 commit comments