RoundedRectangle constructor

RoundedRectangle({
  1. double width = 4.0,
  2. double height = 2.0,
  3. double cornerRadius = 0.5,
  4. Color color = WHITE,
})

Implementation

RoundedRectangle({
  double width = 4.0,
  double height = 2.0,
  double cornerRadius = 0.5,
  Color color = WHITE,
}) : super(color: color, width: width, height: height) {
  roundCorners(radius: cornerRadius);
}