isNegative property

bool get isNegative

Checks if this BigRational is negative.

Returns true if this BigRational is negative; otherwise, false.

Implementation

bool get isNegative {
  return (numerator.isNegative != denominator.isNegative) &&
      numerator != _zero;
}