copyWith method
ExternalModuleConfig
copyWith({
- bool? isAbstract,
- bool? isModuleMethod,
- ImportableType? module,
- String? initializerName,
Implementation
ExternalModuleConfig copyWith({
bool? isAbstract,
bool? isModuleMethod,
ImportableType? module,
String? initializerName,
}) {
if ((isAbstract == null || identical(isAbstract, this.isAbstract)) &&
(isModuleMethod == null || identical(isModuleMethod, isMethod)) &&
(module == null || identical(module, type)) &&
(initializerName == null ||
identical(initializerName, this.initializerName))) {
return this;
}
return ExternalModuleConfig(
isAbstract: isAbstract ?? this.isAbstract,
isMethod: isModuleMethod ?? isMethod,
type: module ?? type,
initializerName: initializerName ?? this.initializerName,
);
}