copyWith method
_RichTextEditorController
copyWith({
- TextDeltas? deltas,
- TextEditingValue? value,
- TextMetadata? metadata,
inherited
returns a copy of this controller with the given parameters
Implementation
_RichTextEditorController copyWith({
TextDeltas? deltas,
TextEditingValue? value,
TextMetadata? metadata,
}) {
return _RichTextEditorController(
text: text,
deltas: deltas?.copy ?? this.deltas.copy,
)
..value = value ?? this.value
..metadata = metadata ?? this.metadata;
}