clip method Null safety

bool clip(
  1. Canvas canvas
)
inherited

Implementation

bool clip(Canvas canvas) {
  if (_clippingShapes.isEmpty) {
    return false;
  }
  canvas.save();
  for (final clip in _clippingShapes) {
    if (!clip.isVisible) {
      continue;
    }
    canvas.clipPath(clip.clippingPath);
  }
  return true;
}