FormListWedgit function
List<Widget>
FormListWedgit(
- dynamic Jsons,
- Map<String, dynamic> map, {
- dynamic pType = 1,
- 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;
}