DrawPentagon constructor

DrawPentagon({
  1. Color backgroundColor = Colors.black,
})

Implementation

DrawPentagon({this.backgroundColor = Colors.black}) {
  painter = Paint()
    ..color = this.backgroundColor
    ..style = PaintingStyle.fill;
}