FFProject constructor
FFProject({
- String? name,
- FFTheme? theme,
- FFAuthPageInfo? authPageInfo,
- FFAuthentication? authentication,
- @Deprecated('This field is deprecated.') String? legacyPackageName,
- Iterable<
MapEntry< ? widgetClasses,String, FFWidgetClass> > - @Deprecated('This field is deprecated.') Iterable<
String> ? legacyPages, - FFBackend? backend,
- FFSettings? appSettings,
- FFRoutingSettings? routingSettings,
- @Deprecated('This field is deprecated.') int? legacyInitialPageIndex,
- FFCustomCode? customCode,
- FFAppState? appState,
- @Deprecated('This field is deprecated.') Iterable<
FFPageGroup> ? legacyPageGroups, - int? updateProjectVersion,
- FFEditMetadata? editMetadata,
- FFEditMetadata? widgetClassMetadata,
- @Deprecated('This field is deprecated.') FFProject_LegacyNullSafety? legacyNullSafety,
- String? marketplaceSourceItemId,
- bool? isMarketplaceProject,
- @Deprecated('This field is deprecated.') bool? legacyVisibleToTeam,
- FFTeamResourceInfo? legacyDesignSystem,
- FFTemplateNodes? templates,
- @Deprecated('This field is deprecated.') String? legacyDisplayName,
- @Deprecated('This field is deprecated.') Iterable<
String> ? legacyComponents, - FFCodeGenerationSettings? codeGenerationSettings,
- FFStoryboard? storyboard,
- Iterable<
String> ? pageKeys, - Iterable<
String> ? componentKeys, - FFDefaultAppBar? defaultAppBar,
- FFProjectTests? tests,
- FFScreenshotInfo? screenshotInfo,
- Iterable<
int> ? dismissedWarningKeys, - FFAppConstants? appConstants,
- FFProjectWalkthroughs? walkthroughs,
- Iterable<
FFDependency> ? dependencies, - FFNodeKeyReference? initialPageKeyRef,
- FFAllAppNames? allAppNames,
- String? designSystemLibraryProjectId,
- String? description,
- Iterable<
FFLibraryConfig> ? libraryConfigurations, - Iterable<
FFAppEvent> ? appEvents,
Implementation
factory FFProject({
$core.String? name,
FFTheme? theme,
FFNavBar? navBar,
FFAuthPageInfo? authPageInfo,
FFAuthentication? authentication,
@$core.Deprecated('This field is deprecated.')
$core.String? legacyPackageName,
$core.Iterable<$core.MapEntry<$core.String, FFWidgetClass>>? widgetClasses,
@$core.Deprecated('This field is deprecated.')
$core.Iterable<$core.String>? legacyPages,
FFBackend? backend,
FFSettings? appSettings,
FFRoutingSettings? routingSettings,
@$core.Deprecated('This field is deprecated.')
$core.int? legacyInitialPageIndex,
FFCustomCode? customCode,
FFAppState? appState,
@$core.Deprecated('This field is deprecated.')
$core.Iterable<FFPageGroup>? legacyPageGroups,
$core.int? updateProjectVersion,
FFEditMetadata? editMetadata,
FFEditMetadata? widgetClassMetadata,
@$core.Deprecated('This field is deprecated.')
FFProject_LegacyNullSafety? legacyNullSafety,
$core.String? marketplaceSourceItemId,
$core.bool? isMarketplaceProject,
@$core.Deprecated('This field is deprecated.')
$core.bool? legacyVisibleToTeam,
FFTeamResourceInfo? legacyDesignSystem,
FFTemplateNodes? templates,
@$core.Deprecated('This field is deprecated.')
$core.String? legacyDisplayName,
@$core.Deprecated('This field is deprecated.')
$core.Iterable<$core.String>? legacyComponents,
FFCodeGenerationSettings? codeGenerationSettings,
FFStoryboard? storyboard,
$core.Iterable<$core.String>? pageKeys,
$core.Iterable<$core.String>? componentKeys,
FFDefaultAppBar? defaultAppBar,
FFProjectTests? tests,
FFScreenshotInfo? screenshotInfo,
$core.Iterable<$core.int>? dismissedWarningKeys,
FFAppConstants? appConstants,
FFProjectWalkthroughs? walkthroughs,
$core.Iterable<FFDependency>? dependencies,
FFNodeKeyReference? initialPageKeyRef,
FFAllAppNames? allAppNames,
$core.String? designSystemLibraryProjectId,
$core.String? description,
$core.Iterable<FFLibraryConfig>? libraryConfigurations,
$core.Iterable<FFAppEvent>? appEvents,
}) {
final result = create();
if (name != null) result.name = name;
if (theme != null) result.theme = theme;
if (navBar != null) result.navBar = navBar;
if (authPageInfo != null) result.authPageInfo = authPageInfo;
if (authentication != null) result.authentication = authentication;
if (legacyPackageName != null) result.legacyPackageName = legacyPackageName;
if (widgetClasses != null) result.widgetClasses.addEntries(widgetClasses);
if (legacyPages != null) result.legacyPages.addAll(legacyPages);
if (backend != null) result.backend = backend;
if (appSettings != null) result.appSettings = appSettings;
if (routingSettings != null) result.routingSettings = routingSettings;
if (legacyInitialPageIndex != null)
result.legacyInitialPageIndex = legacyInitialPageIndex;
if (customCode != null) result.customCode = customCode;
if (appState != null) result.appState = appState;
if (legacyPageGroups != null)
result.legacyPageGroups.addAll(legacyPageGroups);
if (updateProjectVersion != null)
result.updateProjectVersion = updateProjectVersion;
if (editMetadata != null) result.editMetadata = editMetadata;
if (widgetClassMetadata != null)
result.widgetClassMetadata = widgetClassMetadata;
if (legacyNullSafety != null) result.legacyNullSafety = legacyNullSafety;
if (marketplaceSourceItemId != null)
result.marketplaceSourceItemId = marketplaceSourceItemId;
if (isMarketplaceProject != null)
result.isMarketplaceProject = isMarketplaceProject;
if (legacyVisibleToTeam != null)
result.legacyVisibleToTeam = legacyVisibleToTeam;
if (legacyDesignSystem != null)
result.legacyDesignSystem = legacyDesignSystem;
if (templates != null) result.templates = templates;
if (legacyDisplayName != null) result.legacyDisplayName = legacyDisplayName;
if (legacyComponents != null)
result.legacyComponents.addAll(legacyComponents);
if (codeGenerationSettings != null)
result.codeGenerationSettings = codeGenerationSettings;
if (storyboard != null) result.storyboard = storyboard;
if (pageKeys != null) result.pageKeys.addAll(pageKeys);
if (componentKeys != null) result.componentKeys.addAll(componentKeys);
if (defaultAppBar != null) result.defaultAppBar = defaultAppBar;
if (tests != null) result.tests = tests;
if (screenshotInfo != null) result.screenshotInfo = screenshotInfo;
if (dismissedWarningKeys != null)
result.dismissedWarningKeys.addAll(dismissedWarningKeys);
if (appConstants != null) result.appConstants = appConstants;
if (walkthroughs != null) result.walkthroughs = walkthroughs;
if (dependencies != null) result.dependencies.addAll(dependencies);
if (initialPageKeyRef != null) result.initialPageKeyRef = initialPageKeyRef;
if (allAppNames != null) result.allAppNames = allAppNames;
if (designSystemLibraryProjectId != null)
result.designSystemLibraryProjectId = designSystemLibraryProjectId;
if (description != null) result.description = description;
if (libraryConfigurations != null)
result.libraryConfigurations.addAll(libraryConfigurations);
if (appEvents != null) result.appEvents.addAll(appEvents);
return result;
}