bottomBorder method

Decoration bottomBorder({
  1. required Color color,
  2. double? width,
  3. Color? bgColor,
  4. bool bottom = true,
  5. bool top = false,
})

Implementation

Decoration bottomBorder({required Color color, double? width, Color? bgColor, bool bottom = true, bool top = false}) {
  return BoxDecoration(
      color: bgColor,
      border: Border(
        bottom: bottom ? BorderSide(color: color, width: width ?? 1.w) : BorderSide.none,
        top: top ? BorderSide(color: color, width: width ?? 1.w) : BorderSide.none,
      ));
}