createClipPath method
A path function that clips only the circular fade area if there’s a non-zero fade radius.
Implementation
Path createClipPath(Size size) {
final fade = _config.fadeConfig;
if (fade == null || _fadeRadius == 0) {
return _spoilerPath;
}
return Path.combine(
PathOperation.intersect,
_spoilerPath,
Path()..addOval(_splashRect),
);
}