copyWith method

ImageBlock copyWith({
  1. BaseBlock? block,
})
override

Implementation

ImageBlock copyWith({BaseBlock? block}) => ImageBlock(
      depth: block?.depth ?? this.depth,
      start: block?.start ?? this.start,
      end: block?.end ?? this.end,
      inlineStyles: block?.inlineStyles ?? this.inlineStyles,
      entityTypes: block?.entityTypes ?? this.entityTypes,
      data: block?.data ?? this.data,
      text: block?.text ?? this.text,
      blockType: block?.blockType ?? this.blockType,
    );