Skip to main content

setUpFirebase function

Future<void> setUpFirebase ()

<p>Initializes the firebase in the app according to the userplatform (android/iOS).</p> <p><strong>params</strong>: None</p> <p><strong>returns</strong>:</p> <ul> <li><code>Future<void></code>: promise that will be fulfilled Firebase is setted up in app.</li> </ul>

Implementation

Future\<void\> setUpFirebase() async \{
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform(
androidFirebaseOptions,
iosFirebaseOptions,
),
);
\}