Created
May 12, 2018 11:18
-
-
Save happyharis/4d41898464eff2421104a48567376af5 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
class EditTodoPageState extends State<EditTodoPage> { | |
String selectedTodoId; | |
DocumentReference documentReference = Firestore.instance.collection('todo_list').document(); | |
@override | |
void initState(){ | |
selectedTodoId = widget.todoID; | |
documentReference = Firestore.instance.collection('todo_list').document(selectedTodoId); | |
super.initState(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment