getTableMap method
dynamic
getTableMap(
- dynamic name,
- dynamic col
Implementation
getTableMap(name, col) {
myLogAll('getTableMap');
dynamic table = _tableList[name];
if (table == null) {
return null;
}
if (table != null &&
table[gTableMapPrefix] != null &&
table[gTableMapPrefix][col] != null) {
return table[gTableMapPrefix][col];
}
Map map = {};
for (int i = 0; i < table[gData].length; i++) {
var dataRow = table[gData][i];
map[dataRow[col]] = dataRow[gId];
}
table[gTableMapPrefix][col] = map;
return map;
}