toString method Null safety

  1. @override
String toString()
override

Return a string representation of this angle, optimized to be readable. The angle is printed in degrees, and only one decimal digit is included.

Implementation

@override
String toString() => "${degrees.toStringAsFixed(1)}°";