withCurrency<T> static method

T withCurrency<T>(
  1. String currency,
  2. T function()
)

Implementation

static T withCurrency<T>(String currency, T Function() function) {
  return runZoned(function, zoneValues: {#IntlMessage.currency: currency});
}