clearBackStack
Clear the entire backstack and optionally navigate to a new route.
Parameters
newRoute
Optional route to navigate to after clearing backstack
params
Parameters for the new route if specified
Clear the entire backstack and optionally navigate to a new route.
Optional route to navigate to after clearing backstack
Parameters for the new route if specified