toString method

  1. @override
String toString()
override

Provide a representation of this Complex value.

The representation is a number literal to the representation's mathematical value is this Complex.

For all complex, c, converting to a string and parsing the string back gives the same value again: c == Complex.parse(c.toString()).

Implementation

@override
String toString() => '$_real${_img.sign == -1 ? '' : '+'}$_img\u{1D456}';