createCurrency method

CurrencyModel createCurrency({
  1. required IsoCurrencyEnumModel currency,
  2. String? symbol,
})

Implementation

CurrencyModel createCurrency({required final IsoCurrencyEnumModel currency, final String? symbol}) {
  return CurrencyModel((final c) => c
    ..isoCurrency = currency
    ..symbol = symbol ?? '');
}