class HelloWorld extends StatefulWidget {
_HelloWorldState createState() => _HelloWorldState();
}
class _HelloWorldState extends State<HelloWorld> with AutomaticKeepAliveClientMixin // (1) 추가 {
// (2) 추가
bool get wantKeepAlive => true;
.
.
.
}