ModalSheetBarrierBuilder<T> typedef
ModalSheetBarrierBuilder<T> =
Widget Function(ModalRoute<T> route, VoidCallback onDismissCallback)
A builder for creating a custom modal barrier.
If provided, this builder is called instead of creating the default AnimatedModalBarrier. The builder receives the route instance and a dismiss callback, allowing customization of the barrier's appearance and behavior.
The dismiss callback should be invoked when the user interacts with
the barrier to dismiss the modal (e.g., by tapping). The callback
will only dismiss the modal if ModalSheetPage.barrierDismissible is
true and the route animation is completed.
If null, the default AnimatedModalBarrier is used with the
configured ModalSheetPage.barrierColor. The default value is null.
Implementation
typedef ModalSheetBarrierBuilder<T> =
Widget Function(ModalRoute<T> route, VoidCallback onDismissCallback);