border method

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

add border

Implementation

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