Skip to content

Instantly share code, notes, and snippets.

@corelmax
Created January 10, 2021 17:28
Show Gist options
  • Save corelmax/99c6a47770344e3f823a0eae46d6c3bc to your computer and use it in GitHub Desktop.
Save corelmax/99c6a47770344e3f823a0eae46d6c3bc to your computer and use it in GitHub Desktop.
@@ -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