toString method

  1. @override
String toString()
override

Builds and returns a string that lists the horizontal and vertical positions and the width and height of the Rectangle object.

Implementation

@override
String toString() {
  return 'GRect {x: $x, y: $y, w: $width, h: $height}';
}