toArray method

List<double> toArray()

Returns the Rectangle components as a new double list.

Order: [x, y, width, height]

Implementation

List<double> toArray() => [x, y, width, height];