Optimized list item replacement

This commit is contained in:
Kenneth Bruen 2022-06-19 08:50:14 +03:00
parent 073a8e77c1
commit 775a53871f
Signed by: kbruen
GPG key ID: C1980A470C3EE5B1

View file

@ -74,7 +74,8 @@ class ProjectsState extends ChangeNotifier {
index.copyWith(
projects: index.projects
.where((p) => p.projectId != project.projectId)
.toList() + [project]
.followedBy([project])
.toList()
)
);
}