getOuterPath method
override
Creates a Path that describes the outline of the shape.
The host
is the bounding rectangle of the shape.
The guest
is the bounding rectangle of the shape for which a notch will
be made. It is null when there is no guest.
Implementation
@override
Path getOuterPath(Rect hostRect, Rect? guestRect) {
final Path hostPath = host.getOuterPath(hostRect);
if (guest != null && guestRect != null) {
final Path guestPath = guest!.getOuterPath(guestRect);
return Path.combine(PathOperation.difference, hostPath, guestPath);
}
return hostPath;
}