canTransitionTo method

bool canTransitionTo(
  1. SnackRoute nextRoute
)

Whether this route can perform a transition to the given route. Subclasses can override this method to restrict the set of routes they need to coordinate transitions with.

Implementation

bool canTransitionTo(SnackRoute<dynamic> nextRoute) => true;