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.
Thanks for pointing that out 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 what do you say? Should I update the post or leave it as it is for future reference?
Prateek Aher
Flutter | Dart | Golang | Software Development
In the code-block in Creating a Provider section, in the getter, instead of writing
return [..._recipes]you can simply writereturn _recipessince there are no other elements it is combined with, so there is no necessity to use the spread operator.