QsAliveView constructor

const QsAliveView({
  1. Key? key,
  2. required Widget child,
  3. bool keepAlive = true,
})

创建一个存活状态容器。

child 为需要显示的子组件,keepAlive 决定其离开可视区域后是否保留状态。

Implementation

const QsAliveView({super.key, required this.child, this.keepAlive = true});