addChildParam method

AFRouteState addChildParam(
  1. AFRouteParam param
)

Replaces the data on the current leaf element without changing the segments in the route.

Implementation

AFRouteState addChildParam(AFRouteParam param) {
  AFID? widget = param.wid;
  if(widget.isKindOf(AFUIWidgetID.useScreenParam)) {
    widget = param.screenId;
  }
  final screen = param.screenId;
  final route = param.routeLocation;
  AFibD.logRouteAF?.d("addConnectedChild $screen/$widget with $param");
  return _reviseParamWithChildren(screen, widget, route, param, (pwc) => pwc.reviseAddChild(param));
}