updateActiveItems method

void updateActiveItems(
  1. List<T> activeWindows
)

Implementation

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

}