createPrototype static method

AFWorkflowStatePrototype createPrototype({
  1. required AFWorkflowStateTests tests,
  2. required AFPrototypeID id,
  3. required AFBaseTestID stateTestId,
  4. required AFID? actualDisplayId,
})

Implementation

static AFWorkflowStatePrototype createPrototype({
  required AFWorkflowStateTests tests,
  required AFPrototypeID id,
  required AFBaseTestID stateTestId,
  required AFID? actualDisplayId,
}) {
  final instance = AFWorkflowStatePrototype(
    id: id,
    actualDisplayId: actualDisplayId,
    stateTestId: stateTestId as AFStateTestID,
    body: AFWorkflowStateTestPrototype.create(tests, id)
  );
  return instance;
}