getItemSubWidget method

dynamic getItemSubWidget(
  1. Map item,
  2. dynamic typeOwner,
  3. dynamic name,
  4. dynamic context,
  5. dynamic id,
  6. dynamic backcolor,
  7. dynamic actions,
)

Implementation

getItemSubWidget(
    Map item, typeOwner, name, context, id, backcolor, actions) async {
  myLogAll('getItemSubWidget');
  backcolor = Colors.blue.value;

  //if (item[gType] == gDate && (item[gShowDetail] ?? false)) {
  if (item[gType] == gDate || item[gType] == gDatetime) {
    //item[gFocus] = true;
    if (id == gAdvanceSearch) {
      return getDatePicker('', backcolor, context, name, item[gId], actions);
      /*return getDatePickerBetween(
          item, backcolor, context, typeOwner, name, actions);*/
    }
    Map param = {
      gId: id,
      gItem: item,
      gName: name,
      gRow: null,
      gTypeOwner: typeOwner
    };
    var value = getRowItemOneValue(param, context)[gValue];
    return getDatePicker(
        value ?? item[gValue], backcolor, context, name, item[gId], actions);
    //} else if (item[gDroplist] != '' && (item[gShowDetail] ?? false)) {
  } else if (item[gType] == gAddress ||
      item[gDroplist] != '' ||
      item[gType] == gIcon) {
    return getDPPicker(item, backcolor, context, name, item[gId], actions);
  }
  return getEmptyWidget();
}