FirebaseOptions constructor
const
FirebaseOptions({
- required String apiKey,
- required String appId,
- required String messagingSenderId,
- required String projectId,
- String? authDomain,
- String? databaseURL,
- String? storageBucket,
- String? measurementId,
- String? trackingId,
- String? deepLinkURLScheme,
- String? androidClientId,
- String? iosClientId,
- String? iosBundleId,
- 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,
});