refreshValueSelectedDropDownSearch method
dynamic
refreshValueSelectedDropDownSearch({})
Implementation
refreshValueSelectedDropDownSearch(
{List<Widget> lsRows = const [],
String ma = "",
isForceReFresh = false}) {
if (lsRows.isEmpty) {
lsRows = lsRow;
}
for (var element in lsRows) {
Row row = element as Row;
for (var child in row.children) {
try {
// Expanded exp = child as Expanded;
if (child is DropdownSearchProduction) {
if (ma.isNotEmpty) {
if (child.control?.id == ma) {
updateDropwDonw(child: child, isForceReFresh: isForceReFresh);
}
} else {
updateDropwDonw(child: child, isForceReFresh: isForceReFresh);
}
}
} catch (e) {
// printDebug('refreshValueSelectedDropDownSearch ${e}');
}
}
}
}