getListChildTable static method
Implementation
static List<Map<String, Object?>> getListChildTable(
Map<String, List<Map<String, Object?>>?>? data,
int idItem,
String key, {
String keyRef = 'refID',
}) {
List<Map<String, Object?>> mapResult = [];
for (var item in Methods.getList(data, key)) {
if (Methods.getInt(item, keyRef) == idItem) {
mapResult.add(item);
}
}
return mapResult;
}