Skip to content

Instantly share code, notes, and snippets.

@corelmax
Created January 10, 2021 17:14
Show Gist options
  • Save corelmax/941ad24e98e30e0537bb4bcbc662bf80 to your computer and use it in GitHub Desktop.
Save corelmax/941ad24e98e30e0537bb4bcbc662bf80 to your computer and use it in GitHub Desktop.
@@ -18,6 +18,12 @@
});
}
+ void updateTodo(Todo todo) {
+ setState(() {
+ todos[todo.id] = todo;
+ });
+ }
+
Widget _buildTodoList() {
return ListView.builder(
itemCount: todos.length,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment