RationalNumber class

Constructors

RationalNumber(int dividend, int divisor)
factory

Properties

dividend int
final
divisor int
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(RationalNumber that) RationalNumber
inverse() RationalNumber
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
opposite() RationalNumber
times(RationalNumber that) RationalNumber
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Constants

one → const RationalNumber
zero → const RationalNumber