modalNested method
Implementation
Future<R?> modalNested(BuildContext context, {P? args}) async {
if (this is AppPageRoute<R, P>) {
final ar = this as AppPageRoute<R, P>;
return nestedModal<R>(context, (context) {
return ar.handleAny(context, args);
}, settings: null);
}
return go(context, args: args ?? const DefaultRouteParams() as P);
}