addConnectedPrototype method

AFSingleScreenPrototypeBody addConnectedPrototype({
  1. required AFPrototypeID id,
  2. Object? models,
  3. required AFNavigatePushAction navigate,
  4. AFTestTimeHandling timeHandling = AFTestTimeHandling.paused,
})

Implementation

AFSingleScreenPrototypeBody addConnectedPrototype({
  required AFPrototypeID   id,
  Object? models,
  required AFNavigatePushAction navigate,
  AFTestTimeHandling timeHandling = AFTestTimeHandling.paused,
}) {
  final sv = AFibF.g.testData.resolveStateViewModels(models);
  final instance = createPrototype(
    id: id,
    models: sv,
    navigate: navigate,
    body: AFSingleScreenPrototypeBody(id),
    timeHandling: timeHandling,
  );
  _connectedTests.add(instance);
  return instance.singleScreenBody;
}