CurrencyExchangeRate class

Describes exchange rate of a currency to USD

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

CurrencyExchangeRate({required String currency, required double rate})
const

Properties

currency → String
currency ISO 4217 currency code of the payment currency
final
hashCode → int
The hash code for this object.
no setteroverride
rate → double
rate Exchange rate of the currency to USD
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({String? currency, double? rate}) → CurrencyExchangeRate

Available on CurrencyExchangeRate, provided by the CurrencyExchangeRateExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
override
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(Map<String, dynamic>? json) → CurrencyExchangeRate?

Constants

constructor → const String