getCurrency method
Returns the ISO 4217 code for the currency that this formatter formats
If this formatter's type is not "currency", then this method will return null.
Implementation
int? getCurrency() {
String result = '';
final String formatOptions = toJsonString();
final String jscode1 = 'new NumFmt($formatOptions).getCurrency()';
result = ILibJS.instance.evaluate(jscode1).stringResult;
if (result == null || result.isEmpty || result == 'null') {
return null;
}
return int.parse(result);
}