CurrencyTextFieldController constructor
CurrencyTextFieldController({})
Implementation
CurrencyTextFieldController({
String currencySymbol = 'R\$',
String decimalSymbol = ',',
String thousandSymbol = '.',
String currencySeparator = ' ',
double? initDoubleValue,
int? initIntValue,
int maxDigits = 15,
int numberOfDecimals = 2,
bool currencyOnLeft = true,
bool enableNegative = true,
double? maxValue,
}) : assert(thousandSymbol != decimalSymbol,
"thousandSymbol must be different from decimalSymbol."),
_currencySymbol = currencySymbol,
_decimalSymbol = decimalSymbol,
_thousandSymbol = thousandSymbol,
_currencySeparator = currencySeparator,
_maxDigits = maxDigits,
_numberOfDecimals = numberOfDecimals,
_currencyOnLeft = currencyOnLeft,
_enableNegative = enableNegative,
_maxValue = maxValue {
_changeSymbol();
forceValue(initDoubleValue: initDoubleValue, initIntValue: initIntValue);
addListener(_listener);
}