BlacklistingTextInputFormatter constructor

BlacklistingTextInputFormatter(
  1. Pattern blacklistedPattern,
  2. {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);