toString method

  1. @override
String toString()
override

A string representation of angle, showing angle in both radians and degrees.

Implementation

@override
String toString() {
  return "(r:$radian, d:$degree)";
}