FFBackend constructor
FFBackend({
- Iterable<
MapEntry< ? collections,String, FFCollection> > - 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,
- 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;
}