FFBackend constructor

FFBackend({
  1. Iterable<MapEntry<String, FFCollection>>? collections,
  2. FFFirestore? firestore,
  3. FFApiConfig? apiConfig,
  4. FFAlgoliaConfig? algoliaConfig,
  5. FFFirebaseAnalyticsConfig? firebaseAnalyticsConfig,
  6. FFEditMetadata? editMetadata,
  7. FFDataSchemaConfig? dataSchemaConfig,
  8. FFFirebaseCrashlyticsConfig? firebaseCrashlyticsConfig,
  9. FFFirebaseRemoteConfigConfig? firebaseRemoteConfigConfig,
  10. FFSupabaseConfig? supabaseConfig,
  11. FFFirebaseAppCheckConfig? firebaseAppCheckConfig,
  12. FFPostgresConfig? postgresConfig,
  13. FFSQLiteConfig? sqliteConfig,
  14. FFFirebasePerformanceMonitoringConfig? firebasePerformanceMonitoringConfig,
  15. FFCustomCloudFunctionsConfig? customCloudFunctionsConfig,
  16. Iterable<FFAgent>? agents,
})

Implementation

factory FFBackend({
  $core.Iterable<$core.MapEntry<$core.String, FFCollection>>? collections,
  FFFirestore? firestore,
  FFApiConfig? apiConfig,
  FFAlgoliaConfig? algoliaConfig,
  FFFirebaseAnalyticsConfig? firebaseAnalyticsConfig,
  FFEditMetadata? editMetadata,
  FFDataSchemaConfig? dataSchemaConfig,
  FFFirebaseCrashlyticsConfig? firebaseCrashlyticsConfig,
  FFFirebaseRemoteConfigConfig? firebaseRemoteConfigConfig,
  FFSupabaseConfig? supabaseConfig,
  FFFirebaseAppCheckConfig? firebaseAppCheckConfig,
  FFPostgresConfig? postgresConfig,
  FFSQLiteConfig? sqliteConfig,
  FFFirebasePerformanceMonitoringConfig? firebasePerformanceMonitoringConfig,
  FFCustomCloudFunctionsConfig? customCloudFunctionsConfig,
  $core.Iterable<FFAgent>? agents,
}) {
  final result = create();
  if (collections != null) result.collections.addEntries(collections);
  if (firestore != null) result.firestore = firestore;
  if (apiConfig != null) result.apiConfig = apiConfig;
  if (algoliaConfig != null) result.algoliaConfig = algoliaConfig;
  if (firebaseAnalyticsConfig != null)
    result.firebaseAnalyticsConfig = firebaseAnalyticsConfig;
  if (editMetadata != null) result.editMetadata = editMetadata;
  if (dataSchemaConfig != null) result.dataSchemaConfig = dataSchemaConfig;
  if (firebaseCrashlyticsConfig != null)
    result.firebaseCrashlyticsConfig = firebaseCrashlyticsConfig;
  if (firebaseRemoteConfigConfig != null)
    result.firebaseRemoteConfigConfig = firebaseRemoteConfigConfig;
  if (supabaseConfig != null) result.supabaseConfig = supabaseConfig;
  if (firebaseAppCheckConfig != null)
    result.firebaseAppCheckConfig = firebaseAppCheckConfig;
  if (postgresConfig != null) result.postgresConfig = postgresConfig;
  if (sqliteConfig != null) result.sqliteConfig = sqliteConfig;
  if (firebasePerformanceMonitoringConfig != null)
    result.firebasePerformanceMonitoringConfig =
        firebasePerformanceMonitoringConfig;
  if (customCloudFunctionsConfig != null)
    result.customCloudFunctionsConfig = customCloudFunctionsConfig;
  if (agents != null) result.agents.addAll(agents);
  return result;
}