Called when tap the barrier.
If the returns that resolves to false, the flash will be dismiss.
final FutureOr<bool> Function()? onBarrierTap;