defineDialogPrototype method

AFSingleScreenPrototypeBody defineDialogPrototype({
  1. required AFPrototypeID id,
  2. required Object? stateView,
  3. required AFNavigatePushAction navigate,
  4. AFTestTimeHandling timeHandling = AFTestTimeHandling.paused,
  5. String? title,
})

Define a prototype which shows a single screen in a particular screen view state/route param state.

Implementation

AFSingleScreenPrototypeBody defineDialogPrototype({
  required AFPrototypeID   id,
  required Object? stateView,
  required AFNavigatePushAction navigate,
  AFTestTimeHandling timeHandling = AFTestTimeHandling.paused,
  String? title,
}) {
  final modelsActual = stateView ?? <Object>[];
  return dialogTests.addConnectedPrototype(
    id: id,
    models: modelsActual,
    navigate: navigate,
    timeHandling: timeHandling,
  );
}