Add Value Searchable Provider #737
Ayad-Ben-Saliem
started this conversation in
Ideas
Replies: 2 comments 2 replies
-
Maybe you want to do: create: (context) => {...Provider.of<Map<String, int>>(context), 'value2': 10}, |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have implemented the search mechanism in
Also, I have added
As well as, I have added a new
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm trying to add a feature to use value searching for getting an object from
Provider
.Description
When we create a new
Provider
,Provider
registers the object that was created in thecreate
method withinBuildContext
in the widget tree, then when we callread
,watch
, orof
methods theProvider
retrieves the value by searching backward in the widget tree (BY TYPE).I'm trying to add a feature to search for an object by some condition in addition to the type.
Example
Current approach
Suggestion approach
Can somebody help me to achieve this?
Beta Was this translation helpful? Give feedback.
All reactions