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