itemList function
Implementation
Iterable<List<String>> itemList(ScreeningResult result) sync* {
var queryScore = result.queryStatus.queryScore;
yield ['#', 'Score', 'Code', 'Best Mached Name of eacch item'];
var index = 1;
for (var item in result.detectedItems) {
var bestName = item.matchedNames[0];
yield [
index.toString(),
(bestName.score / queryScore * 100).floor().toString(),
item.listCode.toString(),
bestName.entry.string,
];
index++;
}
}