updateRoute method

void updateRoute(
  1. String path
)

Implementation

void updateRoute(String path) {
  final route = _currentRoute(path);
  final index = _currentIndex(path);
  if(indexNotifier.value == index) {
    return;
  }

  handleWebUrl(route);
  WidgetsBinding.instance.addPostFrameCallback((_) {
    indexNotifier.value = index;
    routingTypeNotifier.value = route.type;
    onRouteChanged?.call(route);
  });
}