copyWith method

ImageUrlMessageContent copyWith({
  1. ImageUrl? imageUrl,
})

Creates a copy with the given fields replaced.

Implementation

ImageUrlMessageContent copyWith({ImageUrl? imageUrl}) {
  return ImageUrlMessageContent(imageUrl: imageUrl ?? this.imageUrl);
}