Created
January 10, 2021 17:28
-
-
Save corelmax/99c6a47770344e3f823a0eae46d6c3bc 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
@@ -24,6 +24,12 @@ | |
}); | |
} | |
+ void removeTodoById(String id) { | |
+ setState(() { | |
+ todos.remove(id); | |
+ }); | |
+ } | |
+ | |
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