MoneyMaskedTextController constructor

MoneyMaskedTextController({
  1. double initialValue = 0.0,
  2. String decimalSeparator = ',',
  3. String thousandSeparator = '.',
  4. String rightSymbol = '',
  5. String leftSymbol = '',
  6. int precision = 2,
})

Implementation

MoneyMaskedTextController(
    {double initialValue = 0.0,
    this.decimalSeparator = ',',
    this.thousandSeparator = '.',
    this.rightSymbol = '',
    this.leftSymbol = '',
    this.precision = 2}) {
  _validateConfig();

  this.addListener(() {
    this.updateValue(this.numberValue);
    this.afterChange(this.text, this.numberValue);
  });

  this.updateValue(initialValue);
}