toBorder method

Border toBorder({
  1. Color? color,
  2. double width = 1,
})

A Border with this radius and the given color/width.

Implementation

Border toBorder({Color? color, double width = 1}) =>
    Border.all(color: color ?? const Color(0xFFE2E8F0), width: width);