copyWith method

YTextEvent copyWith({
  1. YText? target,
  2. List<YTextDelta>? delta,
  3. EventPath? path,
})

Returns a new instance by overriding the values passed as arguments

Implementation

YTextEvent copyWith({
  YText? target,
  List<YTextDelta>? delta,
  EventPath? path,
}) => YTextEvent(
  target: target ?? this.target,
  delta: delta ?? this.delta,
  path: path ?? this.path,
);