defineDialogPrototype method
AFSingleScreenPrototypeBody
defineDialogPrototype({
- required AFPrototypeID id,
- required Object? stateView,
- AFTestTimeHandling timeHandling = AFTestTimeHandling.paused,
- 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,
);
}