BlacklistingTextInputFormatter constructor

BlacklistingTextInputFormatter(Pattern blacklistedPattern, { String replacementString: '' })

Creates a formatter that prevents the insertion of blacklisted characters patterns.

The blacklistedPattern must not be null.

Implementation

BlacklistingTextInputFormatter(
  this.blacklistedPattern, {
  this.replacementString = '',
}) : assert(blacklistedPattern != null);