BarrierBuilder typedef
BarrierBuilder =
Widget? Function(BuildContext context, Widget child, Animation<double> animation, int stackIndex)
Builder function for drawer modal barriers.
Creates an optional barrier widget that appears over the backdrop when the drawer is modal. Typically used for dimming and dismissal handling.
Parameters:
context(BuildContext): Build contextchild(Widget): Content behind the barrieranimation(Animation<double>): Animation value from 0 (closed) to 1 (open)stackIndex(int): Index of the drawer in the stack
Returns the barrier widget or null if no barrier needed.
Implementation
typedef BarrierBuilder = Widget? Function(BuildContext context, Widget child,
Animation<double> animation, int stackIndex);