Rectangle constructor

Rectangle({
  1. double width = 4.0,
  2. double height = 2.0,
  3. Color color = WHITE,
})

Implementation

Rectangle({double width = 4.0, double height = 2.0, Color color = WHITE})
    : super([UL, UR, DR, DL], color: color) {
  setWidth(width, stretch: true);
  setHeight(height, stretch: true);
}