---
title: "Comment by Prateek Aher on \"Flutter Advanced - Elegant State Management | Introduction to Provider\" | Hashnode"
description: "In the code-block in Creating a Provider section, in the getter, instead of writing return [..._recipes] you can simply write return _recipes since there are no"
url: "https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5/comment/60373f2c0c99f77f2f8a69a4"
---

[Discussion](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5)

Comment [Flutter Advanced - Elegant State Management | Introduction to Provider](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5)

[Prateek Aher](https://hashnode.com/@prateek_aher)

[Feb 25, 2021](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5/comment/60373f2c0c99f77f2f8a69a4)

In the code-block in **Creating a Provider** section, in the getter, instead of writing `return [..._recipes]` you can simply write `return _recipes` since there are no other elements it is combined with, so there is no necessity to use the spread operator.

[Shashank Biplav](https://hashnode.com/@shashankbiplav)

[Feb 25, 2021](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5/comment/60373f2c0c99f77f2f8a69a4#reply-6037413d05efef7f0a9d45ae)

Thanks for pointing that out [Prateek Aher](https://hashnode.com/@prateek_aher). And to the devs who are reading this post later, `...` is used for destructuring and you can use it when your dataset has `Map`'s inside `Map`'s! [Prateek Aher](https://hashnode.com/@prateek_aher) what do you say? Should I update the post or leave it as it is for future reference?

[Prateek Aher](https://hashnode.com/@prateek_aher)

[Feb 25, 2021](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5/comment/60373f2c0c99f77f2f8a69a4#reply-6037431f0c99f77f2f8a69eb)

[Shashank Biplav](https://hashnode.com/@shashankbiplav) That's totally up to you to decide. Of course, if you do decide to update it, my comment won't make sense to others :smile:

btw, this was an excellent article.

[Shashank Biplav](https://hashnode.com/@shashankbiplav)

[Feb 25, 2021](https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5/comment/60373f2c0c99f77f2f8a69a4#reply-603746b305efef7f0a9d4661)

[Prateek Aher](https://hashnode.com/@prateek_aher) leaving the article as it is as updating it would push your comment and reference out of the picture. Thanks for reading my article!🙌
