Intercepts a close event to indicates whether the tab can be closed.
typedef TabCloseInterceptor = bool Function(int tabIndex);