Paragraph class

Constructors

Paragraph({String type = "", String rawContent = "", List<TextSpan> textSpans = const [], String imageUri = "", String jwMediaId = "", String youtubeVideoId = "", String soundcloudTrackId = "", String soudcloudEmbedCode = "", String hearthisAtTrackId = "", String fontFamily = "", TextAlign textAlign = TextAlign.left, SimpleArticle pdf = const SimpleArticle()})
const
Paragraph.fromJson(Map<String, dynamic> json)
factory
Paragraph.heading(String rawContent, List<TextSpan> textSpans, String fontFamily, TextAlign textAlign)
factory
Paragraph.hearthisAtEmbed(String trackId)
factory
Paragraph.image(String? imageUri, String caption, List<TextSpan> captionSpans)
factory
Paragraph.issuu(SimpleArticle pdfArticle)
factory
Paragraph.jwplayer(String? url)
factory
Paragraph.quote(String rawContent, List<TextSpan> textSpans, String fontFamily, TextAlign textAlign)
factory
Paragraph.soundcloudEmbed(String trackId, String embedCode)
factory
Paragraph.text(String rawContent, List<TextSpan> textSpans, String fontFamily, TextAlign textAlign)
factory
Paragraph.youtubeEmbed(String videoId)
factory

Properties

fontFamily String
final
hashCode int
The hash code for this object.
no setterinherited
hearthisAtTrackId String
final
imageUri String
final
jwMediaId String
final
pdf SimpleArticle
final
rawContent String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
soudcloudEmbedCode String
final
soundcloudTrackId String
final
textAlign TextAlign
final
textSpans List<TextSpan>
final
type String
final
youtubeVideoId String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

toJsonFromList(List<Paragraph> paragraphs) List