RoundRectShape constructor

RoundRectShape({
  1. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
  2. double borderWidth = 0.0,
  3. Color borderColor = const Color(0xffffffff),
})

Implementation

RoundRectShape({
  this.borderRadius = const BorderRadius.all(Radius.circular(12)),
  this.borderWidth = 0.0,
  this.borderColor = const Color(0xffffffff),
}) {
  this.borderPaint.isAntiAlias = true;
  this.borderPaint.style = PaintingStyle.stroke;
}