---
title: "Discussion on \"Flutter Advanced - Elegant State Management | Introduction to Provider\" | Hashnode"
description: "Discussion on \"Flutter Advanced - Elegant State Management | Introduction to Provider\". State management that is recommended by Flutter and Google!"
url: "https://hashnode.com/posts/flutter-advanced-elegant-state-management-introduction-to-provider/603690b705efef7f0a9d3be5"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Flutter Advanced - Elegant State Management | Introduction to Provider](https://shashankbiplav.hashnode.dev/flutter-advanced-elegant-state-management-introduction-to-provider?utm_source=hashnode&utm_medium=feed)

State management that is recommended by Flutter and Google!

Feb 24, 2021 · 25 min read · shashankbiplav.hashnode.dev  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#flutter-examples](https://hashnode.com/tag/flutter-examples)
-   [#flutter-widgets](https://hashnode.com/tag/flutter-widgets)
-   [#dart](https://hashnode.com/tag/dart)

## Written by

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

@shashankbiplav · Bihar, India

  
[View profile](https://hashnode.com/@shashankbiplav)

(☕️) ⇒ {CODE};

I am a Full-Stack Developer👨🏽‍💻 by passion and a Biker🏍 by heart❣ and soul👻. You can say I have code-cravings almost daily and Wanderlust hits hard in the evening and morning. Besides that a nice cup of coffee☕️ over long programming sessions is ♡🤎♡

## Responses 1

Markdown supported · ⌘↵ to post

[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!🙌
