border method

Widget border({
  1. Color? color,
  2. double width = 1.0,
})

Adds a default border on all sides, matching .border.

Implementation

Widget border({Color? color, double width = 1.0}) {
  return Container(
    decoration: BoxDecoration(
      border: Border.all(
        color: color ?? const Color(0xFFDEE2E6), // default Bootstrap light gray border color
        width: width,
      ),
    ),
    child: this,
  );
}