Main.dart
void initState() {
super.initState();
_loading = true;
_nextPageToken = '';
_scrollController = ScrollController();
_videosList = VideosList(
etag: '',
nextPageToken: '',
videos: [],
kind: '',
pageInfo: null);
This is where the error is. The argument type 'Null' cant be assigned to 'PageInfo'
_videosList.videos = [];
_getChannelInfo();
}
Here is my class
class VideosList {
VideosList({
required this.kind,
required this.etag,
required this.nextPageToken,
required this.videos,
required this.pageInfo,
});