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.pageAfter:
dart
pageView.controller!.pageTimeline
#Landed in version: 3.19.0-12.0.pre
In stable release: 3.22.0
References
#Relevant issues:
Was this page's content helpful?
Thank you for your feedback!
Provide detailsThank you for your feedback! Please let us know what we can do to improve.
Provide detailsUnless stated otherwise, the documentation on this site reflects the latest stable version of Flutter. Page last updated on 2024-05-14. View source or report an issue.