copyWith method

Ratio copyWith({
  1. Quantity? numerator,
  2. Quantity? denominator,
})

Creates a deep copy of this Ratio.

Implementation

Ratio copyWith({
  Quantity? numerator,
  Quantity? denominator,
}) =>
    Ratio(
      numerator: numerator ?? this.numerator,
      denominator: denominator ?? this.denominator,
    );