mirror of
https://github.com/dancojocaru2000/logic-circuits-simulator.git
synced 2025-02-22 17:19:36 +02:00
Optimized list item replacement
This commit is contained in:
parent
073a8e77c1
commit
775a53871f
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue