getClip method Null safety

  1. @override
Path getClip(
  1. Size size
)
override

Returns the outer path of shape as the clip.

Implementation

@override
Path getClip(Size size) {
  return shape.getOuterPath(Offset.zero & size, textDirection: textDirection);
}