copyWith method
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,
}) {
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,
);
}