clipOval method

Widget clipOval({
  1. Clip clipBehavior = Clip.antiAlias,
})

Clips this widget to an oval shape.

Parameters:

  • clipBehavior (Clip, default: Clip.antiAlias): Clipping behavior.

Returns: Widget — clipped widget.

Implementation

Widget clipOval({Clip clipBehavior = Clip.antiAlias}) {
  return ClipOval(
    clipBehavior: clipBehavior,
    child: this,
  );
}