getDoubleFormatter static method

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

Implementation

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