border method

Container border({
  1. Color color = Colors.black,
  2. double width = 1,
  3. double radius = 8,
})

Implementation

Container border({
  Color color = Colors.black,
  double width = 1,
  double radius = 8,
}) =>
    copyWith(
      decoration: BoxDecoration(
        border: Border.all(color: color, width: width),
        borderRadius: BorderRadius.circular(radius),
      ),
    );