copyWith method
ReposConfig
copyWith({
- Map<
String, PackageCheckoutConfig> ? sources, - String? checkoutRoot,
- CheckoutMode? defaultMode,
- String? defaultRef,
- String? defaultBase,
Implementation
ReposConfig copyWith({
Map<String, PackageCheckoutConfig>? sources,
String? checkoutRoot,
CheckoutMode? defaultMode,
String? defaultRef,
String? defaultBase,
}) {
return ReposConfig(
sources: {
...this.sources,
...?sources,
},
checkoutRoot: checkoutRoot ?? this.checkoutRoot,
defaultRef: defaultRef ?? this.defaultRef,
defaultBase: defaultBase ?? this.defaultBase,
defaultMode: defaultMode ?? this.defaultMode,
);
}