formatHighlightColor function
void
formatHighlightColor(
- EditorState editorState,
- Selection? selection,
- String? color, {
- bool withUpdateSelection = false,
Implementation
void formatHighlightColor(
EditorState editorState,
Selection? selection,
String? color, {
bool withUpdateSelection = false,
}) {
editorState.formatDelta(
selection,
{AppFlowyRichTextKeys.backgroundColor: color},
withUpdateSelection: withUpdateSelection,
);
}