isNaN method

  1. @override
bool isNaN()

Return true if either the real or the imaginary part of Complex is a NaN, and false otherwise.

Implementation

@override
bool isNaN() {
  return real.isNaN || imaginary.isNaN;
}