Predicate which determines when the current window should close
final bool Function(List<S> queue)? closeWindowWhen;