copyWith method
ReleaseContext
copyWith({
- String? projectPath,
- ReleaseType? type,
- bool? dryRun,
- bool? isCi,
- bool? allowDirty,
- VersionBumpMode? versionBumpMode,
- String? targetPlatform,
- String? versionName,
- int? buildNumber,
- ReleaseConfig? config,
- Map<
String, String> ? environment,
Creates a copy of this context with updated properties.
Implementation
ReleaseContext copyWith({
String? projectPath,
ReleaseType? type,
bool? dryRun,
bool? isCi,
bool? allowDirty,
VersionBumpMode? versionBumpMode,
String? targetPlatform,
String? versionName,
int? buildNumber,
ReleaseConfig? config,
Map<String, String>? environment,
}) {
return ReleaseContext(
projectPath: projectPath ?? this.projectPath,
type: type ?? this.type,
dryRun: dryRun ?? this.dryRun,
isCi: isCi ?? this.isCi,
allowDirty: allowDirty ?? this.allowDirty,
versionBumpMode: versionBumpMode ?? this.versionBumpMode,
targetPlatform: targetPlatform ?? this.targetPlatform,
versionName: versionName ?? this.versionName,
buildNumber: buildNumber ?? this.buildNumber,
config: config ?? this.config,
environment: environment ?? this.environment,
);
}