setFormat method

void setFormat({
  1. required String format,
  2. required dynamic value,
})

setFormat sets the format to editor either by selection or by cursor position

Implementation

void setFormat({required String format, required dynamic value}) async {
  _editorKey?.currentState?._setFormat(format: format, value: value);
}