clipPath method

ClipPath clipPath(
  1. Path clip(
    1. Size
    )
)

路径裁剪快捷方法

参数:

示例:

Container()
  .clipPath((size) => Path()..addOval(Rect.fromLTWH(0,0,100,100)))

Implementation

ClipPath clipPath(Path Function(Size) clip) {
  return _clipPathCustom(clipper: _ClipPath(clip));
}