FormWidget method
Implementation
Widget FormWidget(){
if(formData!=null)
{
switch(formData!['display']){
case 'wizard':
return WizardWedgit(title: title,pages:formData!['components'],mapAnswers: mapAnswers,operationType: operationType,);
case 'form':
return FormScreenWedgit(title: title,formdata: formData!['components'],mapAnswers: mapAnswers,onSubmit:onSubmit,operationType: operationType);
}
}
return const SizedBox(child: Text('Not Found Form Type'),);
}