borderAll method

Widget borderAll(
  1. Color color, {
  2. double width = 1.5,
  3. double radius = 0.0,
})

Wraps the widget with a container that has a border and optional corner radius.

Implementation

Widget borderAll(Color color, {double width = 1.5, double radius = 0.0}) =>
    Container(
      decoration: BoxDecoration(
        border: Border.all(color: color, width: width),
        borderRadius: BorderRadius.circular(radius),
      ),
      child: this,
    );