FormListWedgit function

List<Widget> FormListWedgit(
  1. dynamic Jsons,
  2. Map<String, dynamic> map, {
  3. dynamic pType = 1,
  4. dynamic show = false,
})

Implementation

List<Widget> FormListWedgit( Jsons, Map<String, dynamic> map, {pType = 1,show=false}) {
  List<Widget> listD = [];
    printO("=====================FormListWedgit========List Json  ${Jsons}");
  if (Jsons != null && Jsons.length > 0) {
    printO("List Json length ${Jsons.length}");
    Jsons.forEach((element) {
      listD.add(Padding(
        padding:  EdgeInsets.only(top: 8.0,bottom: 8.0),
        child: FormWedgit(element, map, pType,show: show),
      ));
    });
  }else{
    listD.add(SizedBox());
  }

  return listD;
}