mark community as required, and add assert to make sure it really is
This commit is contained in:
parent
1d872a6f23
commit
b2ea9d3159
|
@ -49,7 +49,9 @@ class CommunitiesListPage extends StatelessWidget {
|
|||
class CommunitiesListItem extends StatelessWidget {
|
||||
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
|
||||
Widget build(BuildContext context) => ListTile(
|
||||
|
|
Loading…
Reference in New Issue