toString method

  1. @override
String toString()
override

Convert an ArrayComplex object to a String representation

Examples

var list = ArrayComplex([
  Complex(real: 3.0, imaginary: 4.0),
  Complex(real: 3.0, imaginary: 4.0) ,
  Complex(real: 3.0, imaginary: 4.0)]);

print(list.toString());
/* output
ArrayComplex([Complex(real: 3.0, imaginary: 4.0), Complex(real: 3.0, imaginary: 4.0), Complex(real: 3.0, imaginary: 4.0)])
*/

Implementation

@override
String toString() {
  var str = IterableBase.iterableToFullString(this, '[', ']');
  return '\n  ArrayComplex($str\n  )';
}