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,
  13. bool? deployHostingRelease,
  14. bool? deployHostingBeta,
  15. String? firestoreRegion,
  16. bool? initializeFirestore,
  17. bool? initializeStorage,
  18. bool? enableEmailAuth,
  19. bool? enableGoogleAuth,
  20. bool? requireBlaze,
  21. bool? setupArtifactCleanup,
  22. int? artifactKeepRecent,
  23. int? artifactDeleteOlderDays,
  24. int? cloudRunKeepRevisions,
  25. JasprRenderMode? jasprRenderMode,
  26. String? jasprServerServiceName,
  27. String? embeddedFlutterMount,
  28. 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,
  );
}