LightHtmlEditorController constructor

LightHtmlEditorController({
  1. String? text,
})

Implementation

LightHtmlEditorController({String? text}) : super(text: text) {
  addListener(() {
    if (!canUndo || _oldText == null) {
      _oldText = this.text;
      return;
    }

    if (this.text.length == _oldText!.length + 1) _clearCache();

    _oldText = this.text;
  });
}