Paragraph.image constructor

Paragraph.image(
  1. String? imageUri,
  2. String caption,
  3. List<TextSpan> captionSpans
)

Implementation

factory Paragraph.image(
    String? imageUri, String caption, List<TextSpan> captionSpans) {
  return Paragraph(
    type: "image",
    rawContent: caption,
    textSpans: captionSpans,
    imageUri: imageUri ?? "",
    jwMediaId: "",
    youtubeVideoId: "",
    soundcloudTrackId: "",
    soudcloudEmbedCode: "",
    hearthisAtTrackId: "",
  );
}