didPushRoute method
- @override
- @mustCallSuper
- @Deprecated('Use didPushRouteInformation instead. ' 'This feature was deprecated after v3.8.0-14.0.pre.')
- String route
inherited
Called when the host tells the application to push a new route onto the navigator.
Implementation
@override
@mustCallSuper
@Deprecated('Use didPushRouteInformation instead. '
'This feature was deprecated after v3.8.0-14.0.pre.')
Future<bool> didPushRoute(String route) async {
var push = super.didPushRoute(route);
// Loop through all the StateX objects
final list = statesList(reversed: true, remove: this);
for (final StateX state in list) {
// final pushed = await state.didPushRoute(route);
// if (pushed) {
// break;
// }
await state.didPushRoute(route);
}
return push;
}