copyWith method
SetupConfig
copyWith({
- String? appName,
- String? orgDomain,
- String? baseClassName,
- TemplateType? template,
- String? outputDir,
- bool? createModels,
- bool? createServer,
- bool? useFirebase,
- String? firebaseProjectId,
- bool? setupCloudRun,
- String? serviceAccountKeyPath,
- List<
String> ? platforms, - bool? deployHostingRelease,
- bool? deployHostingBeta,
- String? firestoreRegion,
- bool? initializeFirestore,
- bool? initializeStorage,
- bool? enableEmailAuth,
- bool? enableGoogleAuth,
- bool? requireBlaze,
- bool? setupArtifactCleanup,
- int? artifactKeepRecent,
- int? artifactDeleteOlderDays,
- int? cloudRunKeepRevisions,
- JasprRenderMode? jasprRenderMode,
- String? jasprServerServiceName,
- String? embeddedFlutterMount,
- List<
String> ? hybridDynamicPrefixes,
Create a copy with updated values
Implementation
SetupConfig copyWith({
String? appName,
String? orgDomain,
String? baseClassName,
TemplateType? template,
String? outputDir,
bool? createModels,
bool? createServer,
bool? useFirebase,
String? firebaseProjectId,
bool? setupCloudRun,
String? serviceAccountKeyPath,
List<String>? platforms,
bool? deployHostingRelease,
bool? deployHostingBeta,
String? firestoreRegion,
bool? initializeFirestore,
bool? initializeStorage,
bool? enableEmailAuth,
bool? enableGoogleAuth,
bool? requireBlaze,
bool? setupArtifactCleanup,
int? artifactKeepRecent,
int? artifactDeleteOlderDays,
int? cloudRunKeepRevisions,
JasprRenderMode? jasprRenderMode,
String? jasprServerServiceName,
String? embeddedFlutterMount,
List<String>? hybridDynamicPrefixes,
}) {
return SetupConfig(
appName: appName ?? this.appName,
orgDomain: orgDomain ?? this.orgDomain,
baseClassName: baseClassName ?? this.baseClassName,
template: template ?? this.template,
outputDir: outputDir ?? this.outputDir,
createModels: createModels ?? this.createModels,
createServer: createServer ?? this.createServer,
useFirebase: useFirebase ?? this.useFirebase,
firebaseProjectId: firebaseProjectId ?? this.firebaseProjectId,
setupCloudRun: setupCloudRun ?? this.setupCloudRun,
serviceAccountKeyPath:
serviceAccountKeyPath ?? this.serviceAccountKeyPath,
platforms: platforms ?? this.platforms,
deployHostingRelease:
deployHostingRelease ?? this.deployHostingRelease,
deployHostingBeta: deployHostingBeta ?? this.deployHostingBeta,
firestoreRegion: firestoreRegion ?? this.firestoreRegion,
initializeFirestore: initializeFirestore ?? this.initializeFirestore,
initializeStorage: initializeStorage ?? this.initializeStorage,
enableEmailAuth: enableEmailAuth ?? this.enableEmailAuth,
enableGoogleAuth: enableGoogleAuth ?? this.enableGoogleAuth,
requireBlaze: requireBlaze ?? this.requireBlaze,
setupArtifactCleanup:
setupArtifactCleanup ?? this.setupArtifactCleanup,
artifactKeepRecent: artifactKeepRecent ?? this.artifactKeepRecent,
artifactDeleteOlderDays:
artifactDeleteOlderDays ?? this.artifactDeleteOlderDays,
cloudRunKeepRevisions:
cloudRunKeepRevisions ?? this.cloudRunKeepRevisions,
jasprRenderMode: jasprRenderMode ?? this.jasprRenderMode,
jasprServerServiceName:
jasprServerServiceName ?? this.jasprServerServiceName,
embeddedFlutterMount:
embeddedFlutterMount ?? this.embeddedFlutterMount,
hybridDynamicPrefixes:
hybridDynamicPrefixes ?? this.hybridDynamicPrefixes,
);
}