singleLineFormatter property

TextInputFormatter singleLineFormatter
final

A TextInputFormatter that forces input to be a single line.

Implementation

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