startScreen method

  1. @override
void startScreen(
  1. AFDispatcher dispatcher,
  2. BuildContext? flutterContext,
  3. AFDefineTestDataContext registry, {
  4. AFRouteParam? routeParam,
  5. List<Object>? stateView,
})
override

Implementation

@override
void startScreen(AFDispatcher dispatcher,  BuildContext? flutterContext, AFDefineTestDataContext registry, { AFRouteParam? routeParam, List<Object>? stateView }) {
  final ms = stateView ?? this.stateView;
  final rpp = routeParam ?? this.createNavigatePush().param;

  final actualModels = registry.find(ms);
  final rp = registry.find(rpp);
  dispatcher.dispatch(AFStartPrototypeScreenTestAction(this,
    models: actualModels,
    navigate: AFNavigatePushAction(launchParam: AFRouteParamWrapper(screenId: AFUIScreenID.screenPrototypeWidget, original: rp)),
  ));
  dispatcher.dispatch(AFUIPrototypeWidgetScreen.navigatePush(this, id: this.id));
}