mark community as required, and add assert to make sure it really is

This commit is contained in:
krawieck 2021-01-09 20:03:06 +01:00
parent 1d872a6f23
commit b2ea9d3159
1 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,9 @@ class CommunitiesListPage extends StatelessWidget {
class CommunitiesListItem extends StatelessWidget { class CommunitiesListItem extends StatelessWidget {
final CommunityView community; final CommunityView community;
const CommunitiesListItem({Key key, this.community}) : super(key: key); const CommunitiesListItem({Key key, @required this.community})
: assert(community != null),
super(key: key);
@override @override
Widget build(BuildContext context) => ListTile( Widget build(BuildContext context) => ListTile(