navigate<V extends ViewModel> method

Future navigate<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. The Future will be resolved with the ViewModel that is navigated to is popped from the stack.

Implementation

Future navigate<V extends ViewModel>({Object parameter});