FilteringTextInputFormatter.deny constructor

FilteringTextInputFormatter.deny(
  1. Pattern filterPattern, {
  2. String replacementString = '',
})

Creates a formatter that blocks characters matching a pattern.

Implementation

FilteringTextInputFormatter.deny(
  Pattern filterPattern, {
  String replacementString = '',
}) : this(filterPattern, allow: false, replacementString: replacementString);