FirebaseOptions constructor

const FirebaseOptions({
  1. required String apiKey,
  2. required String appId,
  3. required String messagingSenderId,
  4. required String projectId,
  5. String? authDomain,
  6. String? databaseURL,
  7. String? storageBucket,
  8. String? measurementId,
  9. String? trackingId,
  10. String? deepLinkURLScheme,
  11. String? androidClientId,
  12. String? iosClientId,
  13. String? iosBundleId,
  14. String? appGroupId,
})

The options used to configure a Firebase app.

await Firebase.initializeApp(
  name: 'SecondaryApp',
  options: const FirebaseOptions(
    apiKey: '...',
    appId: '...',
    messagingSenderId: '...',
    projectId: '...',
  )
);

Implementation

const FirebaseOptions({
  required this.apiKey,
  required this.appId,
  required this.messagingSenderId,
  required this.projectId,
  this.authDomain,
  this.databaseURL,
  this.storageBucket,
  this.measurementId,
  // ios specific
  this.trackingId,
  this.deepLinkURLScheme,
  this.androidClientId,
  this.iosClientId,
  this.iosBundleId,
  this.appGroupId,
});