DVBillingRates class

The conversion rates an application has configured.

The specification says rates "can be overridden", which means the application is the authority and the framework ships none. A rate nobody set is absent rather than guessed, and a rate set twice is the second one: overriding is what this is for.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

all → Map<String, double>
Every configured rate, as FROM>TO.
no setter

Static Methods

rateFor({required String from, required String to}) → double?
The configured rate, or null.
reset() → void
Forgets every rate. For tests, and for an application reloading them.
set({required String from, required String to, required double rate}) → void
Sets the rate from one currency to another.