fix analyzer warnings

Signed-off-by: Sahil Kumar <[email protected]>
This commit is contained in:
Sahil Kumar
2021-06-17 17:09:50 +05:30
parent b7efe258c9
commit 73d6527725
7 changed files with 11 additions and 13 deletions
@@ -1373,6 +1373,7 @@ class ClientState {
_userController.add(user);
}
/// Update all the [users] with the provided [userList]
void updateUsers(List<User?> userList) {
final newUsers = {
...users,
@@ -1382,6 +1383,7 @@ class ClientState {
_usersController.add(newUsers);
}
/// Update the passed [user] in state
void updateUser(User? user) => updateUsers([user]);
/// The current user