copyWith method

Rate copyWith({
  1. String? from,
  2. String? to,
  3. num? rate,
})

Implementation

Rate copyWith({String? from, String? to, num? rate}) {
  return Rate(
    from: from ?? this.from,
    to: to ?? this.to,
    rate: rate ?? this.rate,
  );
}