copyWith method

FirebaseOptions copyWith({
  1. String? apiKey,
  2. String? appId,
  3. String? messagingSenderId,
  4. 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,
})

Returns a copy of this FirebaseOptions with the given fields replaced with the new values.

Implementation

FirebaseOptions copyWith({
  String? apiKey,
  String? appId,
  String? messagingSenderId,
  String? projectId,
  String? authDomain,
  String? databaseURL,
  String? storageBucket,
  String? measurementId,
  String? trackingId,
  String? deepLinkURLScheme,
  String? androidClientId,
  String? iosClientId,
  String? iosBundleId,
  String? appGroupId,
}) {
  return FirebaseOptions(
    apiKey: apiKey ?? this.apiKey,
    appId: appId ?? this.appId,
    messagingSenderId: messagingSenderId ?? this.messagingSenderId,
    projectId: projectId ?? this.projectId,
    authDomain: authDomain ?? this.authDomain,
    databaseURL: databaseURL ?? this.databaseURL,
    storageBucket: storageBucket ?? this.storageBucket,
    measurementId: measurementId ?? this.measurementId,
    trackingId: trackingId ?? this.trackingId,
    deepLinkURLScheme: deepLinkURLScheme ?? this.deepLinkURLScheme,
    androidClientId: androidClientId ?? this.androidClientId,
    iosClientId: iosClientId ?? this.iosClientId,
    iosBundleId: iosBundleId ?? this.iosBundleId,
    appGroupId: appGroupId ?? this.appGroupId,
  );
}