Flutter Version 1.12.13+hotfix.8
Example: https://github.com/flutter/flutter/tree/master/examples/hello_world
Element & Widget Tree
The setState() invokes the ‘fn’ callback and adds the element to list of dirty elements.
1. Call ‘fn’ callback.
(The ‘result’ is only for checking if the return of ‘fn’ callback is the Future)
2. Set the Element to dirty status.
3. Add the Element to BuildOwner’s _dirtyElements list.
4. Set the Element’s _inDirtyList to ‘true’.