MoneyUnsupportedCurrencyIssue class final
The currency is valid but not in the allowed set.
- Inheritance
-
- Object
- ValidationIssue
- MoneyValidationIssue
- MoneyUnsupportedCurrencyIssue
Constructors
-
MoneyUnsupportedCurrencyIssue({required String currency, required Set<
String> allowedCurrencies}) -
Creates an unsupported-currency issue.
const
Properties
-
allowedCurrencies
→ Set<
String> -
The currency codes that are allowed.
final
- code → String
-
Machine-readable issue code.
no setteroverride
- currency → String
-
The rejected currency code.
final
- 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