Lifecycle method of Stateful widget

 

[Ko]

initState() : state initialized 1회만 호출됨. (, stateful widget 만들어질 가장 먼저 호출됨.)

build() : widget 실제로 만들어지고 화면에 나타나게 하기 위해 호출됨.

deactivate() : stateful widget destroyed 되기 직전에 호출됨.(state data save 등에 사용)

 

[En]

initState (): Called only once when the state is initialized. (That is, it is called first when a stateful widget is created.)
build (): called to make the widget actually build and appear on the screen.
deactivate (): called just before the stateful widget is destroyed (used for state data save, etc.)

+ Recent posts