make user required

This commit is contained in:
krawieck 2021-01-09 20:01:25 +01:00
parent d5896692f3
commit fd2de00c96
1 changed files with 3 additions and 1 deletions

View File

@ -41,7 +41,9 @@ class UsersListPage extends StatelessWidget {
class UsersListItem extends StatelessWidget {
final UserView user;
const UsersListItem({Key key, this.user}) : super(key: key);
const UsersListItem({Key key, @required this.user})
: assert(user != null),
super(key: key);
@override
Widget build(BuildContext context) => ListTile(