Created
January 10, 2021 17:14
-
-
Save corelmax/941ad24e98e30e0537bb4bcbc662bf80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -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