sqrt method Null safety

Complex sqrt()

Implementation

Complex sqrt() {
  final rr = r;
  return Complex(dart.sqrt((real + rr) / 2),
      (imaginary < 0 ? -1 : 1) * dart.sqrt((-real + rr) / 2));
}