How to pass data from child widget to its parent?

Posted by Jessica Taylor | Updated on

Want to pass data from child widget to its parent? The first possibility is to pass a callback into your child, and the second is to use the of pattern for your stateful widget. See the below example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers