Returns the Rectangle components as a new double list.
Order: [x, y, width, height]
[x, y, width, height]
List<double> toArray() => [x, y, width, height];