BorderDecoration constructor

BorderDecoration({
  1. required Color color,
  2. required double strokeWidth,
  3. double? borderRadius,
})

Implementation

BorderDecoration({
  required this.color,
  required this.strokeWidth,
  this.borderRadius,
}) : boxDecoration = BoxDecoration(
        borderRadius: BorderRadius.all(
          Radius.circular(borderRadius ?? 25),
        ),
        border: Border.fromBorderSide(
          BorderSide(
            color: color,
            width: strokeWidth,
          ),
        ),
      );