buildModalBarrier method
Build the barrier for this ModalRoute, subclasses can override this method to create their own barrier with customized features such as color or accessibility focus size.
See also:
- ModalBarrier, which is typically used to build a barrier.
- ModalBottomSheetRoute, which overrides this method to build a customized barrier.
Implementation
@override
Widget buildModalBarrier() {
final barrier = super.buildModalBarrier();
final paint = barrierBuilder;
return paint == null ? barrier : paintedBarrier(paint, animation!, barrier);
}