denyEmptySpaces top-level property

FilteringTextInputFormatter denyEmptySpaces
final

Implementation

final denyEmptySpaces = FilteringTextInputFormatter.deny(RegExp(r'\s'));