copyWith method

_RichTextEditorController copyWith({
  1. TextDeltas? deltas,
  2. TextEditingValue? value,
  3. 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;
}