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