ISO4217Currency constructor

ISO4217Currency({
  1. required String code,
  2. required int numCode,
  3. required int digits,
  4. required String currencyName,
  5. required List<String> locations,
})

Creates a new instance of ISO4217Currency.

The constructor initializes the currency with the provided code, numeric code, decimal digits, currency name, and the list of locations.

Example:

final usd = ISO4217Currency(
  code: 'USD',
  numCode: 840,
  digits: 2,
  currencyName: 'United States Dollar',
  locations: ['United States', 'American Samoa', 'British Virgin Islands'],
);

Implementation

ISO4217Currency({
  required this.code,
  required this.numCode,
  required this.digits,
  required this.currencyName,
  required this.locations,
});