copyWith method

UnitInterval copyWith({
  1. BigInt? numerator,
  2. BigInt? denominator,
})

Implementation

UnitInterval copyWith({BigInt? numerator, BigInt? denominator}) {
  return UnitInterval(
      numerator: numerator ?? this.numerator,
      denominator: denominator ?? this.denominator);
}