navigateForResult<R extends Object, V extends ViewModel> method

Future<R> navigateForResult<R extends Object, V extends ViewModel>(
  1. {Object parameter}
)

Navigates to a new viewmodel of the type specified by the generic.

The parameter is a value that will be passed to the new viewmodel's init method. It is expexted that the ViewModel being navigated to will return an instance of type R when it is popped off the stack.

Implementation

Future<R> navigateForResult<R extends Object, V extends ViewModel>(
    {Object parameter});