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:
pageView.controller.page
After:
pageView.controller!.page
Timeline
#
Landed in version: 3.19.0-12.0.pre
In stable release: 3.22.0
References
#Relevant issues:
Unless stated otherwise, the documentation on this site reflects Flutter 3.35.5. Page last updated on 2025-10-28. View source or report an issue.