borderTop method

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

Adds a border to the top side, matching .border-top.

Implementation

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