Skip to content

Commit 71eca7b

Browse files
committed
Adding featureMedia in the Post constructor
1 parent 1929421 commit 71eca7b

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 featureMedia,
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: featureMedia),
122124
this.content = new Content(rendered: content),
123125
this.excerpt = new Excerpt(rendered: excerpt);
124126

0 commit comments

Comments
 (0)