Skip to content

Commit aed00fa

Browse files
authored
Merge pull request #35 from CineticCommunication/master
Adding featureMedia in the Post constructor
2 parents 83260f0 + df46981 commit aed00fa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/schemas/post.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ class Post {
110110
@required String content,
111111
@required String excerpt,
112112
@required this.authorID,
113+
String featuredMedia,
113114
this.featuredMediaID,
114115
this.commentStatus = PostCommentStatus.open,
115116
this.pingStatus = PostPingStatus.open,
@@ -119,6 +120,7 @@ class Post {
119120
this.categoryIDs,
120121
this.tagIDs,
121122
}) : this.title = new Title(rendered: title),
123+
this.featuredMedia = new Media(sourceUrl: featuredMedia),
122124
this.content = new Content(rendered: content),
123125
this.excerpt = new Excerpt(rendered: excerpt);
124126

0 commit comments

Comments
 (0)