Make PageView.controller nullable
Summary
#If a controller isn't provided in the constructor,
the controller
member is null
. This makes
PageView
and its controller
property consistent with other widgets.
Migration guide
#Before:
dart
pageView.controller.page
After:
dart
pageView.controller!.page
Timeline
#Landed in version: 3.19.0-12.0.pre
In stable release: 3.22.0
References
#Relevant issues:
除非另有说明,本文档之所提及适用于 Flutter 的最新稳定版本,本页面最后更新时间: 2024-10-09。 查看文档源码 或者 为本页面内容提出建议。