updateFromRoute method

void updateFromRoute(
  1. String? currentRoute,
  2. List items
)

Implementation

void updateFromRoute(String? currentRoute, List<dynamic> items) {
  if (currentRoute != null) {
    _normalizedCurrentRoute = _normalizeRoute(currentRoute);
    _currentSegments = _normalizedCurrentRoute.split('/');
    _updateSelectionFromRoute(items);
    notifyListeners();
  }
}