goWithResult<T extends StandardPageWithResult<R, E>, R extends Object?, E extends Object?> method

Future<E?> goWithResult<T extends StandardPageWithResult<R, E>, R extends Object?, E extends Object?>(
  1. R pageData, [
  2. StandardPageNavigationMode? navigationMode
])

Navigate to the StandardPageWithResult of type T that returns a value, with the option to pass pageData during the navigation. T is the type of the destination page. R is the type of page data. E is the data type of the value that the page returns. navigationMode is optional and represents the mode of StandardPageNavigationMode to use during navigation.

Implementation

Future<E?> goWithResult<T extends StandardPageWithResult<R, E>,
        R extends Object?, E extends Object?>(R pageData,
    [StandardPageNavigationMode? navigationMode]) {
  assert(routerDelegate is StandardRouterDelegate);
  final tDelegate = routerDelegate as StandardRouterDelegate;
  return tDelegate.goWithResult<T, R, E>(pageData, navigationMode);
}