title: Firebase.initializeApp() -- How do I know that this requires an await async functionality?
body: <p>This code is from: <a href="https://blog.logrocket.com/flutter-push-notifications-with-firebase-cloud-messaging/" rel="nofollow noreferrer">https://blog.logrocket.com/flutter-push-notifications-with-firebase-cloud-messaging/</a></p>
  <pre><code>void registerNotification() async {
    // 1. Initialize the Firebase app
    await Firebase.initializeApp();
  
    // 2. Instantiate Firebase Messaging
    _messaging = FirebaseMessaging.instance;
  
    .......
  }
  </code></pre>
  <p>Here for <code>Firebase.initializeApp()</code> they have used await and async.<br />
  How do I know await is required for this function to work properlty?</p>
  <p>Doc are here: <a href="https://firebase.google.com/docs/reference/node/firebase#initializeapp" rel="nofollow noreferrer">https://firebase.google.com/docs/reference/node/firebase#initializeapp</a><br />
  I didn't see anything special mentioned regarding await in docs.</p>