copyWith method
Returns a new instance by overriding the values passed as arguments
Implementation
YTextDeltaRetain copyWith({
int /*U32*/ ? retain,
Option<TextAttrs>? attributes,
}) =>
YTextDeltaRetain(
retain: retain ?? this.retain,
attributes: attributes != null ? attributes.value : this.attributes);