didUpdateWidget method

  1. @override
void didUpdateWidget(
  1. covariant HtmlEditor oldWidget
)

Implementation

@override
void didUpdateWidget(covariant HtmlEditor oldWidget) {
  super.didUpdateWidget(oldWidget);
  if (oldWidget.editorState != widget.editorState) {
    updateEditorState(widget.editorState ?? EditorState.blank());
  }
}