refreshValueSelectedDropDownSearch method

dynamic refreshValueSelectedDropDownSearch({
  1. List<Widget> lsRows = const [],
  2. String ma = "",
  3. dynamic isForceReFresh = false,
})

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}');
      }
    }
  }
}