getIntFormatter static method

List<TextInputFormatter> getIntFormatter({
  1. double? maxValue,
})

Implementation

static List<TextInputFormatter> getIntFormatter({double? maxValue}) => [
      _IntTextInputFormatter(maxValue: maxValue),
      FilteringTextInputFormatter.allow(RegExp('[1234567890]'))
    ];