NewDecimalEditingController constructor

NewDecimalEditingController(
  1. Decimal value, {
  2. String decimalSeparator = ',',
  3. String thousandSeparator = '.',
})

Implementation

NewDecimalEditingController(
  Decimal value, {
  String decimalSeparator = ',',
  String thousandSeparator = '.',
}) : super(
        validator: NewDecimalValidator(
          value.precision,
          decimalSeparator: decimalSeparator,
          thousandSeparator: thousandSeparator,
        ),
      ) {
  decimal = value;
}