Flutter – Get the BuildContext from within a callback function at the place it is called
I have made a Widget (MyComplexWidget) consisting of 2 other widgets A and B. On construction of MyComplexWidget, I pass it a callback function for one of its children widget's (A, B) onTap/onPressed property. The problem is that this callback…