copyWith method

YTextDeltaRetain copyWith({
  1. int? retain,
  2. Option<TextAttrs>? attributes,
})

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);