onTap method

dynamic onTap(
  1. dynamic context,
  2. Map map,
  3. dynamic backcolor
)

Implementation

onTap(context, Map map, backcolor) {
  myLogAll('onTap');
  try {
    if (map[gType] == gAction) {
      if (map[gActionid] == gLogout) {
        logOff(context);
      } else if (map[gActionid] == gChangepassword) {
        changePassword([], context);
      } else if (map[gActionid] == gRole) {}
    } else if (map[gType].endsWith(gTable)) {
      var tableid = map[gActionid];
      _lastBackGroundColor = _defaultBackGroundColor;

      showTableOne(
          tableid, context, map[gLabel] ?? "", "", backcolor, null, null, -1);
    }
  } catch (e) {
    showMsg(context, e, null);
  }
  if (map[gLabel] == "Test") {
    //showTab("role", context);
  }
  //print('=====typed ' + map[gLabel]);
}