RectangleD.rect constructor

RectangleD.rect(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Implementation

factory RectangleD.rect(
  num x,
  num y,
  num width,
  num height,
) => .new(
  x: x.toDouble(),
  y: y.toDouble(),
  width: width.toDouble(),
  height: height.toDouble(),
);