Closed feinstein closed 4 years ago
Keep in mind that a BuildContext points to a very specific location in the widget tree, and that widgets uses unidirectional dataflow.
The context of your custom widget may not have access to the same things that the provider's context does.
Hmm, ok, I can't see where this would be useful, but I will close it then.
Create
looks like this:But I can't think of a case where any
Provider
will havecreate:
called outside abuild()
method, socontext
will always be available, isn't this redundant?