IDKitNumeralTextInputFormatter.min constructor
IDKitNumeralTextInputFormatter.min({
- required num? minValue,
- int? maxDecimalDigit,
- bool decimalPoint = true,
- 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.');