Rational.fromInt constructor
Create a new rational number from its numerator and a non-zero
denominator.
If the denominator is omitted then its value will be 1.
Implementation
factory Rational.fromInt(int numerator, [int denominator = 1]) =>
Rational(BigInt.from(numerator), BigInt.from(denominator));