formPage method

Widget formPage()

Implementation

Widget formPage(){
  if(formData!=null)
     {

       switch(formData?['display']){

         case 'wizard':
         return Wizard(title: title,pages: formData!['components'],mapAnswers: mapAnswers,operationType: operationType,onSubmit:onSubmit);

         case 'form':
         return FormScreen(title: title,formdata: formData!['components'],mapAnswers: mapAnswers,onSubmit:onSubmit,operationType: operationType);
       }
     }
     return const SizedBox(child: Text('Not Found Form Type'),);
  }