menuCutoutBuilder property

void Function(Path path, Rect bounds) menuCutoutBuilder
final

An optional callback that customizes the cutout shape.

Does nothing if cutout is false or FPopoverStyle.barrierFilter is null. Defaults to FModalBarrier.defaultCutoutBuilder which adds a plain rectangle matching the cutout's bounds.

To add a circular cutout:

cutoutBuilder: (path, bounds) => path.addOval(bounds.deflate(3)),

Implementation

final void Function(Path path, Rect bounds) menuCutoutBuilder;