copyWith method

SetupConfig copyWith({
  1. String? appName,
  2. String? orgDomain,
  3. String? baseClassName,
  4. TemplateType? template,
  5. String? outputDir,
  6. bool? createModels,
  7. bool? createServer,
  8. bool? useFirebase,
  9. String? firebaseProjectId,
  10. bool? setupCloudRun,
  11. String? serviceAccountKeyPath,
  12. List<String>? platforms,
})

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