From fd2de00c96a02db02eb8ff097ea8d5e021f814ef Mon Sep 17 00:00:00 2001 From: krawieck Date: Sat, 9 Jan 2021 20:01:25 +0100 Subject: [PATCH] make user required --- lib/pages/users_list.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pages/users_list.dart b/lib/pages/users_list.dart index 7f7b400..fe38cef 100644 --- a/lib/pages/users_list.dart +++ b/lib/pages/users_list.dart @@ -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(