isPositive property

bool get isPositive

Checks if this BigRational is positive.

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

Implementation

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