onChangeContent property

void Function(String?)? onChangeContent
getter/setter pair

Called whenever the HTML content of the editor is changed and the editor is in rich text view.

Note: This function also seems to be called if input is detected in the editor field but the content does not change. E.g. repeatedly pressing backspace when the field is empty will also trigger this callback.

This function will return the current HTML in the editor as an argument.

Implementation

void Function(String?)? onChangeContent;