im property

Complex im

use num.imag getter.

final a = 3.imag; // a = Complex(0, 3.0);
final b = 4.0.imag; // b = Complex(0, 4.0);
final c = 3.im; // c = Complex(0, 3.0);
final d = 4.0.im; // d = Complex(0, 4.0);

Implementation

Complex get im => Cartesian(0, toDouble());