getBasicFormatters static method

List<TextInputFormatter> getBasicFormatters({
  1. int? maxLength,
})

Creates basic text formatters with length limiting

Implementation

static List<TextInputFormatter> getBasicFormatters({int? maxLength}) =>
    <TextInputFormatter>[
      if (maxLength != null) _getMaxLengthFormatter(maxLength),
    ];