|
|
|
|
|
|
// e.g. setState(() => {....}) |
|
|
|
} |
|
|
|
``` |
|
|
|
All the code dealing with UIWidgets (```setState()``` in most case) needs to be in window scope. |
|
|
|
For callback/event handler methods from UIWidgets (e.g ```Widget.build, State.initState...```), you don't need put them |
|
|
|
in the window scope. |
|
|
|
For callback/event handler methods from UIWidgets (e.g ```Widget.build, State.initState...```), you don't need do |
|
|
|
it yourself, since the framework ensure it's in window scope. |
|
|
|
## Debug UIWidgets Application |
|
|
|
|
|
|
|
#### Define UIWidgets_DEBUG |
|
|
|