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,
  3. bool pushParentPage = false
])

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. pushParentPage indicates whether to push the parent page when navigating to a child page. default is false.

Implementation

Future<E?> goWithResult<
  T extends StandardPageWithResult<R, E>,
  R extends Object?,
  E extends Object?
>(
  R pageData, [
  StandardPageNavigationMode? navigationMode,
  bool pushParentPage = false,
]) {
  return Router.of(
    this,
  ).goWithResult<T, R, E>(pageData, navigationMode, pushParentPage);
}