IDKitNumeralTextInputFormatter.min constructor

IDKitNumeralTextInputFormatter.min({
  1. required num? minValue,
  2. int? maxDecimalDigit,
  3. bool decimalPoint = true,
  4. StreamController<InputFormatterError>? errorStreamController,
})

Limit the minimum value of the input value.

minValue Limit the minimum value entered. maxDecimalDigit Maximum decimal places. decimalPoint Whether the decimal point is available. errorStreamController Enter the control object of the abnormal event.

Implementation

IDKitNumeralTextInputFormatter.min({
  required this.minValue,
  this.maxDecimalDigit,
  this.decimalPoint = true,
  this.errorStreamController,
})  : _formatterType = NumeralFormatterType.min,
      assert(minValue! < 9,
          'The minimum value of the input value must be less than 9.');