Dman_14

Untitled

Jan 20th, 2021
847
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /// Instead of this:
  2.  
  3. class IdeaService {
  4.   ///create variable instances for use
  5.   CollectionReference _ideaRef = FirebaseFirestore.instance.collection("ideas");
  6. }
  7.  
  8.  
  9.  
  10. /// Do this
  11.  
  12. class IdeaService {
  13.   ///create variable instances for use
  14.   CollectionReference _ideaRef;
  15.    
  16.   initialize() {
  17.       _ideaRef = FirebaseFirestore.instance.collection("ideas");
  18.   }
  19.    
  20. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×