setAddressList method
dynamic
setAddressList(
- dynamic actionData,
- dynamic context
Implementation
setAddressList(actionData, context) async {
myLogAll('setAddressList');
Map data = getMap(actionData[0]);
List result = data[gBody];
Map attr = getMap(data[gAttr]);
dynamic searchTxt = attr[gValue];
dynamic dpid = attr[gActionid];
/*dynamic typeOwner = attr[gTypeOwner];
dynamic name = attr[gName];
dynamic id = attr[gId];
dynamic col = attr[gCol];*/
dynamic typeOwner = _mFocusNode[gType];
dynamic name = _mFocusNode[gName];
dynamic id = _mFocusNode[gId];
dynamic col = _mFocusNode[gCol];
List resultSort = getArrayMatch(result, searchTxt);
_dpList[dpid] = resultSort;
Map item = getFormItem(name, col);
List actions = [];
actions.add({
gType: gIcon,
gValue: 0xef49,
gLabel: gConfirm,
gAction: gLocalAction,
gItem: item,
gTypeOwner: typeOwner,
gName: name,
gId: id,
});
Widget w = await getItemSubWidget(
item, typeOwner, name, context, id, _defaultBackGroundColor, actions);
//}
showPopup(context, w, null, actions, false);
}