Created
October 4, 2021 16:51
-
-
Save brasizza/5a6a70b323e795d383d255474b30b30c 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
import 'package:get/get.dart'; | |
import 'package:hive_tutorial/app/data/models/todo_model.dart'; | |
class HomeController extends GetxController { | |
final todoList = <TodoModel>[].obs; | |
void fakeTodo() { | |
todoList.add( | |
TodoModel( | |
id: 1, | |
title: 'Random Title', | |
descritpion: 'Full description Here', | |
done: false, | |
tag: '#personal', | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment