@@ -1531,15 +1531,17 @@ class Navigator extends StatefulWidget {
15311531 /// Ongoing gestures within the current route are canceled when a new route is
15321532 /// pushed.
15331533 ///
1534- /// Returns a [Future] that completes to the `result` value passed to [pop]
1535- /// when the pushed route is popped off the navigator.
1536- ///
15371534 /// The `T` type argument is the type of the return value of the route.
15381535 ///
15391536 /// To use [pushNamed] , an [Navigator.onGenerateRoute] callback must be
15401537 /// provided,
15411538 /// {@endtemplate}
15421539 ///
1540+ /// {@template flutter.widgets.navigator.pushNamed.returnValue}
1541+ /// Returns a [Future] that completes to the `result` value passed to [pop]
1542+ /// when the pushed route is popped off the navigator.
1543+ /// {@endtemplate}
1544+ ///
15431545 /// {@template flutter.widgets.Navigator.pushNamed}
15441546 /// The provided `arguments` are passed to the pushed route via
15451547 /// [RouteSettings.arguments] . Any object can be passed as `arguments` (e.g. a
@@ -1699,16 +1701,15 @@ class Navigator extends StatefulWidget {
16991701 /// Ongoing gestures within the current route are canceled when a new route is
17001702 /// pushed.
17011703 ///
1702- /// Returns a [Future] that completes to the `result` value passed to [pop]
1703- /// when the pushed route is popped off the navigator.
1704- ///
17051704 /// The `T` type argument is the type of the return value of the new route,
17061705 /// and `TO` is the type of the return value of the old route.
17071706 ///
17081707 /// To use [pushReplacementNamed] , a [Navigator.onGenerateRoute] callback must
17091708 /// be provided.
17101709 /// {@endtemplate}
17111710 ///
1711+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
1712+ ///
17121713 /// {@macro flutter.widgets.Navigator.pushNamed}
17131714 ///
17141715 /// {@tool snippet}
@@ -1793,16 +1794,14 @@ class Navigator extends StatefulWidget {
17931794 /// Ongoing gestures within the current route are canceled when a new route is
17941795 /// pushed.
17951796 ///
1796- /// Returns a [Future] that completes to the `result` value passed to [pop]
1797- /// when the pushed route is popped off the navigator.
1798- ///
17991797 /// The `T` type argument is the type of the return value of the new route,
18001798 /// and `TO` is the return value type of the old route.
18011799 ///
18021800 /// To use [popAndPushNamed] , a [Navigator.onGenerateRoute] callback must be provided.
1803- ///
18041801 /// {@endtemplate}
18051802 ///
1803+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
1804+ ///
18061805 /// {@macro flutter.widgets.Navigator.pushNamed}
18071806 ///
18081807 /// {@tool snippet}
@@ -1898,15 +1897,14 @@ class Navigator extends StatefulWidget {
18981897 /// Ongoing gestures within the current route are canceled when a new route is
18991898 /// pushed.
19001899 ///
1901- /// Returns a [Future] that completes to the `result` value passed to [pop]
1902- /// when the pushed route is popped off the navigator.
1903- ///
19041900 /// The `T` type argument is the type of the return value of the new route.
19051901 ///
19061902 /// To use [pushNamedAndRemoveUntil] , an [Navigator.onGenerateRoute] callback
19071903 /// must be provided.
19081904 /// {@endtemplate}
19091905 ///
1906+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
1907+ ///
19101908 /// {@macro flutter.widgets.Navigator.pushNamed}
19111909 ///
19121910 /// {@tool snippet}
@@ -1982,12 +1980,11 @@ class Navigator extends StatefulWidget {
19821980 /// Ongoing gestures within the current route are canceled when a new route is
19831981 /// pushed.
19841982 ///
1985- /// Returns a [Future] that completes to the `result` value passed to [pop]
1986- /// when the pushed route is popped off the navigator.
1987- ///
19881983 /// The `T` type argument is the type of the return value of the route.
19891984 /// {@endtemplate}
19901985 ///
1986+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
1987+ ///
19911988 /// {@tool snippet}
19921989 ///
19931990 /// Typical usage is as follows:
@@ -2068,13 +2065,12 @@ class Navigator extends StatefulWidget {
20682065 /// Ongoing gestures within the current route are canceled when a new route is
20692066 /// pushed.
20702067 ///
2071- /// Returns a [Future] that completes to the `result` value passed to [pop]
2072- /// when the pushed route is popped off the navigator.
2073- ///
20742068 /// The `T` type argument is the type of the return value of the new route,
20752069 /// and `TO` is the type of the return value of the old route.
20762070 /// {@endtemplate}
20772071 ///
2072+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
2073+ ///
20782074 /// {@tool snippet}
20792075 ///
20802076 /// Typical usage is as follows:
@@ -2155,12 +2151,11 @@ class Navigator extends StatefulWidget {
21552151 /// Ongoing gestures within the current route are canceled when a new route is
21562152 /// pushed.
21572153 ///
2158- /// Returns a [Future] that completes to the `result` value passed to [pop]
2159- /// when the pushed route is popped off the navigator.
2160- ///
21612154 /// The `T` type argument is the type of the return value of the new route.
21622155 /// {@endtemplate}
21632156 ///
2157+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
2158+ ///
21642159 /// {@tool snippet}
21652160 ///
21662161 /// Typical usage is as follows:
@@ -4078,6 +4073,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
40784073 ///
40794074 /// {@macro flutter.widgets.navigator.pushNamed}
40804075 ///
4076+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4077+ ///
40814078 /// {@macro flutter.widgets.Navigator.pushNamed}
40824079 ///
40834080 /// {@tool snippet}
@@ -4145,6 +4142,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
41454142 ///
41464143 /// {@macro flutter.widgets.navigator.pushReplacementNamed}
41474144 ///
4145+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4146+ ///
41484147 /// {@macro flutter.widgets.Navigator.pushNamed}
41494148 ///
41504149 /// {@tool snippet}
@@ -4215,6 +4214,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
42154214 ///
42164215 /// {@macro flutter.widgets.navigator.popAndPushNamed}
42174216 ///
4217+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4218+ ///
42184219 /// {@macro flutter.widgets.Navigator.pushNamed}
42194220 ///
42204221 /// {@tool snippet}
@@ -4278,6 +4279,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
42784279 ///
42794280 /// {@macro flutter.widgets.navigator.pushNamedAndRemoveUntil}
42804281 ///
4282+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4283+ ///
42814284 /// {@macro flutter.widgets.Navigator.pushNamed}
42824285 ///
42834286 /// {@tool snippet}
@@ -4346,6 +4349,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
43464349 ///
43474350 /// {@macro flutter.widgets.navigator.push}
43484351 ///
4352+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4353+ ///
43494354 /// {@tool snippet}
43504355 ///
43514356 /// Typical usage is as follows:
@@ -4493,6 +4498,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
44934498 ///
44944499 /// {@macro flutter.widgets.navigator.pushReplacement}
44954500 ///
4501+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4502+ ///
44964503 /// {@tool snippet}
44974504 ///
44984505 /// Typical usage is as follows:
@@ -4578,6 +4585,8 @@ class NavigatorState extends State<Navigator> with TickerProviderStateMixin, Res
45784585 ///
45794586 /// {@macro flutter.widgets.navigator.pushAndRemoveUntil}
45804587 ///
4588+ /// {@macro flutter.widgets.navigator.pushNamed.returnValue}
4589+ ///
45814590 /// {@tool snippet}
45824591 ///
45834592 /// Typical usage is as follows:
0 commit comments