A builder function for a custom close button.
final Widget Function(T, dynamic Function())? closeButton;