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