integerOnly static method
Creates a formatter that only allows integer input with optional min/max bounds.
Parameters:
min: Optional minimum value.max: Optional maximum value.
Implementation
static TextInputFormatter integerOnly({int? min, int? max}) {
return _IntegerOnlyFormatter(min: min, max: max);
}