findAllById static method
Finds all StringIdText items matching the given list of ids.
Returns a list containing only the items with matching IDs.
Implementation
static List<StringIdText> findAllById(
List<StringIdText> stringIdTexts, List<String> ids) {
Map<String, StringIdText> map = stringIdTexts.toMap((item) => item.id);
return ids
.map((e) => map[e])
.where((element) => element != null)
.map((e) => e!)
.toList();
}