pageStreamController property
StreamController for viewing page index update. 用于更新当前正在浏览的资源页码的流控制器
The main purpose is to narrow down build parts when index is changing, prevent widely State.setState and causing other widgets rebuild. 使用 StreamController 的主要目的是缩小页码变化时构建组件的范围, 防止滥用 State.setState 导致其他部件重新构建。
Implementation
final StreamController<int> pageStreamController =
StreamController<int>.broadcast();