clipOval method

Widget clipOval({
  1. CustomClipper<Rect>? clipper,
  2. Clip behavior = Clip.antiAlias,
})

A modifier that clips its widget to an oval shape.

Example:

Icon(Icons.person)
    .clipOval();

Implementation

Widget clipOval({
  CustomClipper<Rect>? clipper,
  Clip behavior: Clip.antiAlias,
}) {
  return ClipOval(child: this, clipper: clipper, clipBehavior: behavior);
}