I want to call a function inside Wrap content. My requirement is to call this function before the wrap content is loaded.
void checkFund(){}
Wrap(
children: entList
.map((element) => Padding(
padding: const EdgeInsets.only(left: 4.0, bottom: 5),
child: element['isAcq']
? Acquisition('${element['ele']}')
: element['isPartner']
? GestureDetector(
// onTap: () {
// print('partner');
// },
child: NewPartnerShip(
'${element['ele']}',
)
: element['isFunding']
?
Funding('${element['ele']??'NA'}',
))
.toList(),
)
2
Answers
You can achive it by using function to get some widget E.g.
You can turn
expression body =>
into ablock body