Paragraph.heading constructor

Paragraph.heading(
  1. String rawContent,
  2. List<TextSpan> textSpans,
  3. String fontFamily,
  4. TextAlign textAlign,
)

Implementation

factory Paragraph.heading(String rawContent, List<TextSpan> textSpans,
    String fontFamily, TextAlign textAlign) {
  return Paragraph(
      type: "heading",
      rawContent: rawContent,
      textSpans: textSpans,
      imageUri: "",
      jwMediaId: "",
      youtubeVideoId: "",
      soundcloudTrackId: "",
      soudcloudEmbedCode: "",
      hearthisAtTrackId: "",
      fontFamily: fontFamily,
      textAlign: textAlign);
}