Complex.fromReal constructor

Complex.fromReal(
  1. num a
)

Creates a complex number from a real number a.

Implementation

factory Complex.fromReal(num a) => Complex(a);