DrawDiamond constructor

DrawDiamond({
  1. Color backgroundColor = Colors.black,
  2. bool with3dEffect = false,
})

Implementation

DrawDiamond(
    {this.backgroundColor = Colors.black, this.with3dEffect = false}) {
  painter = Paint()
    ..color = this.backgroundColor
    ..style = PaintingStyle.fill;
}