setFormat method
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);
}