Skip to main content

buildNewPosts method

void buildNewPosts (List<Post> newPosts)

<p>This function initialise <code>_posts</code> with <code>newPosts</code>.</p> <p>params:</p> <ul> <li><code>newPosts</code></li> </ul>

Implementation

void buildNewPosts(List\<Post\> newPosts) \{
_posts = newPosts;
notifyListeners();
\}