withCircularBorder method

Widget withCircularBorder({
  1. Color color = Colors.black,
  2. double width = 1.0,
  3. BorderStyle style = BorderStyle.solid,
})

Adds a circular border with the specified color and width to the widget

Implementation

Widget withCircularBorder({
  Color color = Colors.black,
  double width = 1.0,
  BorderStyle style = BorderStyle.solid,
}) => Container(
  decoration: BoxDecoration(
    border: Border.all(color: color, width: width, style: style),
    shape: BoxShape.circle,
  ),
  child: this,
);