isInfinite method

  1. @override
bool isInfinite()

Return true if either the real or the imaginary part of Complex is an infinity, otherwise return false.

Implementation

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