Text modification should only be applied when text is being committed by the IME and not on text under composition (i.e., only when TextEditingValue.composing is collapsed).
Concrete implementations BlacklistingTextInputFormatter, which removes blacklisted characters upon edit commit, and WhitelistingTextInputFormatter, which only allows entries of whitelisted characters, are provided.
TextEditingValue oldValue, TextEditingValue newValue) → TextEditingValue
- Called when text is being typed or cut/copy/pasted in the EditableText. [...]
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns a string representation of this object.