createClipPath method

Path createClipPath(
  1. Size size
)

A path function that clips only the circular fade area if there’s a non-zero fade radius.

Implementation

Path createClipPath(Size size) {
  return Path.combine(
    PathOperation.intersect,
    _spoilerPath,
    _fadeCenter == Offset.zero || !_config.enableFadeAnimation
        ? _spoilerPath
        : (Path()..addOval(_splashRect)),
  );
}