copyWith method
Creates a deep copy of this object with the given fields replaced with the new values.
Implementation
Fraction copyWith({
int? numerator,
int? denominator,
}) =>
Fraction(
numerator ?? this.numerator,
denominator ?? this.denominator,
);