inputFormatters property Null safety

List<TextInputFormatter>? inputFormatters

Optional input validation and formatting overrides.

Formatters are run in the provided order when the user changes the text this widget contains. When this parameter changes, the new formatters will not be applied until the next time the user inserts or deletes text. Similar to the onChanged callback, formatters don't run when the text is changed programmatically via controller.

See also:


final List<TextInputFormatter>? inputFormatters;