Callback fired before the table's detail view / panel closes. Return true to allow the close, or false to prevent it.
final Future<bool> Function(K key)? onWillCollapse;