Square constructor

Square({
  1. double sideLength = 2.0,
  2. Color color = WHITE,
})

Implementation

Square({double sideLength = 2.0, Color color = WHITE})
    : super(color: color, width: sideLength, height: sideLength);