getDPIndex method

dynamic getDPIndex(
  1. dynamic i,
  2. dynamic item
)

Implementation

getDPIndex(i, item) {
  myLogAll('getDPIndex');
  var dpid = getDPidfromItem(item);
  bool isLabel = false;
  bool isIcon = false;
  if (item[gType] == gAddress) {
    isLabel = true;
  } else if (item[gType] == gIcon) {
    isIcon = true;
  }
  List data = getDpDataSearch(dpid, isIcon, isLabel);
  return data[i];
}