borderStart method

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

Adds a border to the start (left) side, matching .border-start.

Implementation

Widget borderStart({Color? color, double width = 1.0}) {
  return Container(
    decoration: BoxDecoration(
      border: Border(
        left: BorderSide(
          color: color ?? const Color(0xFFDEE2E6),
          width: width,
        ),
      ),
    ),
    child: this,
  );
}