modalNested method

Future<R?> modalNested(
  1. BuildContext context, {
  2. P? args,
})

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);
}