toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
toString() {
  return 'Polar Coord: ${radius.toStringAsFixed(2)}' +
      ' at ${(angle / (2 * pi) * 360).toStringAsFixed(2)}°';
}