From 487a2aab1de4fb776725f027081365b235959996 Mon Sep 17 00:00:00 2001 From: krawieck Date: Tue, 29 Sep 2020 21:08:02 +0200 Subject: [PATCH] mark fetcher props as required --- lib/widgets/sortable_infinite_list.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/sortable_infinite_list.dart b/lib/widgets/sortable_infinite_list.dart index 7ef5b6f..71de457 100644 --- a/lib/widgets/sortable_infinite_list.dart +++ b/lib/widgets/sortable_infinite_list.dart @@ -52,7 +52,7 @@ class InfinitePostList extends StatelessWidget { final Future> Function( int page, int batchSize, SortType sortType) fetcher; - InfinitePostList({this.fetcher}); + InfinitePostList({@required this.fetcher}) : assert(fetcher != null); Widget build(BuildContext context) => SortableInfiniteList( onStyleChange: () {}, @@ -70,7 +70,7 @@ class InfiniteCommentList extends StatelessWidget { final Future> Function( int page, int batchSize, SortType sortType) fetcher; - InfiniteCommentList({this.fetcher}); + InfiniteCommentList({@required this.fetcher}) : assert(fetcher != null); Widget build(BuildContext context) => SortableInfiniteList( builder: (comment) => Comment(