updateActiveItems method
Implementation
void updateActiveItems(List<T> activeWindows){
for(var item in items){
item.isActive = activeWindows.contains(item.fileType);
}
items.retainWhere((element) => element.isActive || element.alwaysVisible);
}