Skip to content

Instantly share code, notes, and snippets.

@happyharis
Created May 12, 2018 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save happyharis/4d41898464eff2421104a48567376af5 to your computer and use it in GitHub Desktop.
Save happyharis/4d41898464eff2421104a48567376af5 to your computer and use it in GitHub Desktop.
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