defineWidgetPrototype method

AFSingleScreenPrototypeBody defineWidgetPrototype({
  1. required AFPrototypeID id,
  2. required AFRenderConnectedChildDelegate render,
  3. List<AFRouteParam>? children,
  4. dynamic stateView,
  5. required AFCreateWidgetLaunchParamDelegate createLaunchParam,
})

Implementation

AFSingleScreenPrototypeBody defineWidgetPrototype({
  required AFPrototypeID id,
  required AFRenderConnectedChildDelegate render,
  List<AFRouteParam>? children,
  dynamic stateView,
  required AFCreateWidgetLaunchParamDelegate createLaunchParam,
}) {
  final launchParam = createLaunchParam(AFUIScreenID.screenPrototypeWidget, AFUIWidgetID.widgetPrototypeTest, AFRouteLocation.screenHierarchy);
  return widgetTests.addConnectedPrototype(
    id: id,
    render: render,
    models: stateView,
    routeParam: launchParam,
    children: children,
  );
}