Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /// Instead of this:
- class IdeaService {
- ///create variable instances for use
- CollectionReference _ideaRef = FirebaseFirestore.instance.collection("ideas");
- }
- /// Do this
- class IdeaService {
- ///create variable instances for use
- CollectionReference _ideaRef;
- initialize() {
- _ideaRef = FirebaseFirestore.instance.collection("ideas");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment