copyWith method

BlockNoteTextContent copyWith({
  1. String? type,
  2. String? text,
  3. Object? styles = kUnset,
})

Implementation

BlockNoteTextContent copyWith({
  String? type,
  String? text,
  Object? styles = kUnset,
}) {
  return BlockNoteTextContent(
    type: type ?? this.type,
    text: text ?? this.text,
    styles: identical(styles, kUnset)
        ? this.styles
        : styles as Map<String, dynamic>?,
  );
}