copyWith method

YTextDeltaInsert copyWith({
  1. String? insert,
  2. Option<TextAttrs>? attributes,
})

Returns a new instance by overriding the values passed as arguments

Implementation

YTextDeltaInsert copyWith({
  String? insert,
  Option<TextAttrs>? attributes,
}) =>
    YTextDeltaInsert(
        insert: insert ?? this.insert,
        attributes: attributes != null ? attributes.value : this.attributes);