Is there a way to pass widget key by inherited widget (provider,riverPod,InheritedWidget..etc).
If so, what are the pros and cons.
What I want to do is making the widget const (in widget tree) and pass the key as inherited widget since it can't be const because the key is coming from an object.
const MyWidget({
Key key,
}):super(key: key);