ThousandsSeparatorTextInputFormatter constructor

ThousandsSeparatorTextInputFormatter({
  1. String groupSeparator = ',',
  2. String decimalSeparator = '.',
  3. int allowedDecimals = 1000,
})

Implementation

ThousandsSeparatorTextInputFormatter({
  this.groupSeparator = ',',
  this.decimalSeparator = '.',
  this.allowedDecimals = 1000,
}) : assert(groupSeparator.length == 1),
     assert(decimalSeparator.length == 1),
     assert(groupSeparator != decimalSeparator),
     assert(allowedDecimals >= 0);