Browse Source

Optimized list item replacement

master
Kenneth Bruen 2 years ago
parent
commit
775a53871f
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 3
      lib/state/projects.dart

3
lib/state/projects.dart

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

Loading…
Cancel
Save