border method

dynamic border({
  1. Color color = const Color(0xff95d9f1),
  2. double width = 2,
  3. double radius = 0,
})

add border

Implementation

border({Color color = const Color(0xff95d9f1), double width = 2, double radius = 0}) {
  return Container(
      decoration: BoxDecoration(
        border: Border.all(color: color, width: width),
        borderRadius: BorderRadius.all(
          Radius.circular(radius),
        ),
      ),
      child: this);
}