dispose method
清理资源 在 StatefulWidget 被从树中移除并销毁时调用的,这个方法用于清理资源。
Called when the widget is removed from the tree permanently. Used to release resources.
Implementation
@override
void dispose() {
logi("[lifecycle] dispose");
super.dispose();
}
清理资源 在 StatefulWidget 被从树中移除并销毁时调用的,这个方法用于清理资源。
Called when the widget is removed from the tree permanently. Used to release resources.
@override
void dispose() {
logi("[lifecycle] dispose");
super.dispose();
}