navigateTo method

dynamic navigateTo({
  1. required Widget screen,
  2. dynamic state,
  3. bool fade = false,
})

Implementation

navigateTo({required Widget screen, state, bool fade = false}) =>
    Navigator.push(
        this,
        fade
            ? _fadeTransition(screen)
            : MaterialPageRoute(builder: (_) => screen));