copyWith method

  1. @override
ImageNode copyWith({
  1. String? url,
  2. String? alt,
  3. String? title,
})
override

Creates a copy of this node

Implementation

@override
ImageNode copyWith({String? url, String? alt, String? title}) {
  return ImageNode(
    url: url ?? this.url,
    alt: alt ?? this.alt,
    title: title ?? this.title,
  );
}