singleLineFormatter property Null safety

TextInputFormatter singleLineFormatter
final

A TextInputFormatter that forces input to be a single line.

Implementation

static final TextInputFormatter singleLineFormatter = FilteringTextInputFormatter.deny('\n');