toString method

  1. @override
String toString()
override

Returns a string representation of the rectangle, including its position and size.

Implementation

@override
String toString() => 'x:$x, y:$y, width:$width, height:$height';