CurrencyTextInputFormatter.fromFormatter constructor

CurrencyTextInputFormatter.fromFormatter(
  1. CurrencyFormatter formatter, {
  2. bool zeroIsEmpty = false,
  3. TextDirection textDirection = TextDirection.ltr,
})

Implementation

CurrencyTextInputFormatter.fromFormatter(CurrencyFormatter formatter,
    {this.zeroIsEmpty = false, this.textDirection = TextDirection.ltr}) {
  _formatter = CurrencyFormatter(
      locale: formatter.locale,
      currency: formatter.currency,
      symbol: formatter.symbol,
      decimalDigits: formatter.decimalDigits);
}